Skip to content

Commit cfbccbf

Browse files
authored
Merge pull request #166 from cmu-delphi/release_v4.0
Release v4.0
2 parents 4973c6d + 9d6f44a commit cfbccbf

File tree

8 files changed

+484
-97
lines changed

8 files changed

+484
-97
lines changed

.github/workflows/s3_upload_ec2.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919

2020
# Steps represent a sequence of tasks that will be executed as part of the job
2121
steps:
22+
- name: Change dir owner to working user
23+
run: sudo chown -R $USER:$USER $GITHUB_WORKSPACE
24+
2225
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2326
- uses: actions/checkout@v2
2427

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: forecast-eval
22
Title: Forecast Evaluation Dashboard
3-
Version: 3.1
3+
Version: 4.0
44
Authors@R: person("Kate", "Harwood",
55
role = c("cre")),
66
person("Chris", "Scott",

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
# Forecast Eval
22

33
Epiforecast scoring and interactive evaluation tools.
4+
https://delphi.cmu.edu/forecast-eval/
5+
6+
Code on the `dev` branch appears in staging: https://staging.delphi.cmu.edu/forecast-eval/
7+
Username and password are included in the [meeting notes doc](https://docs.google.com/document/d/1q8sKrbjzymEDsWQ9mUomOZ255-_5W6RPGgTdFlHmpmE/edit)
48

59
## Steps to contribute
610
1. Create a new branch off of `dev`
711
2. Create a pull request into `dev`
812

9-
Branch `main` is the production branch. Branch `dev` will be merged into main when a release is ready.
13+
Branch `main` is the production branch. Branch `dev` will be merged into main when a release is ready. See below for instructions on how to create a release.
14+
15+
16+
17+
**Note:** the easiest way to view and develop this project locally is to use RStudio and run the RShiny app from inside the IDE
18+
19+
<img width="1111" alt="Screen Shot 2021-08-30 at 10 56 59 AM" src="https://user-images.githubusercontent.com/14190352/131359925-3b460d21-b9aa-4a40-a691-cd705ab98431.png">
20+
21+
Alternatively, ...
1022

1123

1224
## Building
@@ -52,6 +64,21 @@ git push origin v1.0
5264
Create a PR into `main`.
5365
After code is merged to `main`, perform cleanup by merging `main` into `dev` so that `dev` stays up to date.
5466

67+
# Code Structure
68+
- `workflows` contains the weekly data pipeline workflow action (`s3_upload_ec2.yml`) and the `main.yml` that runs on branch merge
69+
- `Report` contains the scoring and data upload scripts that run weekly
70+
- `dashboard` contains all the code for the RShiny dashboard
71+
- `www` contains the styling and the assets
72+
- `app.R` is the main RShiny file with the UI and server functions
73+
- `common.R` is for code shared between the app and the download feature
74+
- `export_scores.R` contains the code for the download feature
75+
- `about.md` contains the code for the "About" tab in the dasboard (other .md files contain explanations of the scores and other text info that appears in the app)
76+
- `docker_buid` contains the `Dockerfile` specifying the version of the `covidcast` docker image to use
77+
- `docker_dashboard` contains the `Dockerfile` and `shiny_server.conf` for the RShiny app
78+
- ***Note: when adding a new package dependency to the app, it must be specified in this Dockerfile***
79+
- `DESCRIPTION` is where the version number is updated for each release
80+
- `Makefile` contains all commands to build and run the dashboard and score and upload the data
81+
5582
## Note on Scoring Script
5683

5784
When updates are made in the evalcast package that affect the scoring script, the covidcast docker image must be rebuilt by kicking off the workflow here: https://github.com/cmu-delphi/covidcast-docker/actions/workflows/main.yml. Ensure that the changes in evalcast will be compatible with the dashboard and will not cause errors - when the scoring script is run on these changes the results show up automatically in prod.

dashboard/about.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@ Though hospitalizations are forecasted on a daily basis, in keeping with the cas
7979
#### **Notes on the Data**
8080

8181
* If a forecast does not include an explicit point estimate, the 0.5 quantile is taken as the point estimate for calculating absolute error.
82-
* WIS is only shown for forecasts that have predictions for all quantiles (23 quantiles for deaths and hospitalizations and 7 for cases)
82+
* The weighted interval score is only shown for forecasts that have predictions for all quantiles (23 quantiles for deaths and hospitalizations and 7 for cases)
8383
* Totaling over all states and territories does not include nationwide forecasts. To ensure that values are comparable, these totals also exclude any locations that are absent from any file that was submitted by one of the selected forecasters.
84-
* We include revisions of observed values, which means that the scores for forecasts made in the past can change as our understanding of the ground truth changes.
84+
* For scoring, we include revisions of observed values, which means that the scores for forecasts made in the past can change as our understanding of the ground truth changes.
85+
* The observed data can also be viewed **'as of'** a certain date, which shows what observed data a forecaster had available
86+
when a past forecast was made (but the forecasts are always scored on the latest revision of the observed data).
8587

8688
#### **Accessing the Data**
8789
The forecasts and scores are available as RDS files and are uploaded weekly to a publicly accessible AWS bucket.

0 commit comments

Comments
 (0)