-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add end-to-end workflow config for fv3atm, fix bugs (#196)
* Add workflow yamls for fv3atm end-to-end * Fix function name in create_training_data pipeline * Change to partial end-to-end workflow config * Add end-to-end workflow updates * Change prognostic run Docker image use v0.3.1 model * Change Q1/Q2 variable names in prognostic model * Upload rundirs.yml to remote and open that for combined notebook * Add fv3atm run to rundirs * Use new RF training config yaml * Use v0.3.1 fv3gfs-python for prognostic run * Change version to 0.1.1, upload rundirs.yml before submit * Update end-to-end workflow to use new syntax * Remove dead code * Remove hard-code of prog run diags location * Update workflow config * Use agg backend so windows dont block test script * Add backoff dependency * Point fv3config to its latest master commit * Revert "Point fv3config to its latest master commit" This reverts commit a0002df. * Update prognstic run image in workflow config * Change combined report location to experiments-2020-03 * Add missing -p to argo submit * Add fv3atm baseline run to rundirs.yml * Update common report rundirs
- Loading branch information
Oliver Watt-Meyer
authored
Mar 25, 2020
1 parent
db72139
commit 850c0e0
Showing
16 changed files
with
144 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ scikit-learn==0.22.1 | |
dask | ||
joblib | ||
zarr | ||
scikit-image | ||
scikit-image | ||
backoff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
storage_proto: gs | ||
storage_root: vcm-ml-data/experiments-2020-03/end_to_end | ||
experiment: | ||
name: deep-conv-off-fv3atm-a45d1781 | ||
unique_id: False | ||
steps_to_run: | ||
- one_step_run | ||
- create_training_data | ||
- train_sklearn_model | ||
- test_sklearn_model | ||
- prognostic_run | ||
- baseline_run | ||
|
||
steps_config: | ||
one_step_run: | ||
command: python workflows/one_step_jobs/orchestrate_submit_jobs.py | ||
args: | ||
restart_data: | ||
location: gs://vcm-ml-data/2020-01-16-X-SHiELD-2019-12-02-pressure-coarsened-rundirs/restarts/C48 | ||
experiment_yaml: ./workflows/one_step_jobs/deep-conv-off-fv3atm.yml | ||
docker_image: us.gcr.io/vcm-ml/fv3gfs-python:v0.3.1 | ||
--config-version: v0.3 | ||
|
||
create_training_data: | ||
command: python -m fv3net.pipelines.create_training_data | ||
args: | ||
one_step_data: | ||
from: one_step_run | ||
diagnostics_data: | ||
location: gs://vcm-ml-data/orchestration-testing/shield-coarsened-diags-2019-12-04 | ||
--timesteps-per-output-file: 1 | ||
--train-fraction: 0.5 | ||
|
||
train_sklearn_model: | ||
command: python -m fv3net.regression.sklearn.train | ||
args: | ||
training_data: | ||
from: create_training_data | ||
train-config-file: ./workflows/sklearn_regression/maxdepth_13_rf_config.yml | ||
|
||
test_sklearn_model: | ||
command: python -m fv3net.diagnostics.sklearn_model_performance | ||
args: | ||
trained_model: | ||
from: train_sklearn_model | ||
testing_data: | ||
from: create_training_data | ||
diagnostics_data: | ||
location: gs://vcm-ml-data/orchestration-testing/shield-coarsened-diags-2019-12-04 | ||
--num_test_zarrs: 36 | ||
--downsample-time-factor: 40 | ||
|
||
prognostic_run: | ||
command: python workflows/prognostic_c48_run/orchestrate_submit_job.py | ||
args: | ||
restart_file_dir: | ||
from: one_step_run | ||
ic_timestep: "20160803.061500" | ||
docker_image: us.gcr.io/vcm-ml/prognostic_run:v0.1.1-oliwmtest | ||
--prog_config_yml: workflows/prognostic_c48_run/prognostic_config.yml | ||
--model_url: | ||
from: train_sklearn_model | ||
|
||
baseline_run: | ||
command: python workflows/prognostic_c48_run/orchestrate_submit_job.py | ||
args: | ||
restart_file_dir: | ||
from: one_step_run | ||
ic_timestep: "20160803.061500" | ||
docker_image: us.gcr.io/vcm-ml/prognostic_run:v0.1.1-oliwmtest | ||
--prog_config_yml: workflows/prognostic_c48_run/prognostic_config.yml | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
kubernetes: | ||
docker_image: us.gcr.io/vcm-ml/fv3gfs-python:v0.3.1 | ||
fv3config: | ||
diag_table: workflows/one_step_jobs/diag_table_one_step | ||
namelist: | ||
atmos_model_nml: | ||
fhout: 0.01666 | ||
coupler_nml: | ||
days: 0 | ||
minutes: 15 | ||
seconds: 0 | ||
dt_atmos: 60 # seconds | ||
dt_ocean: 60 # seconds | ||
restart_secs: 60 | ||
fv_core_nml: | ||
external_eta: true | ||
npz: 79 | ||
k_split: 1 | ||
n_split: 1 | ||
gfs_physics_nml: | ||
do_deep: false | ||
fhzero: 0.01666 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
#!/bin/bash | ||
|
||
if [ "$#" -lt 1 ]; then | ||
output_url=gs://vcm-ml-data/experiments-2020-03/prognostic_run_diags | ||
echo "WARNING: no output_url specified for prognostic run diags." | ||
echo "Using default output_url $output_url" | ||
else | ||
output_url=$1 | ||
echo "Saving prognostic run diagnostics to $output_url" | ||
fi | ||
|
||
gsutil cp rundirs.yml $output_url/rundirs.yml | ||
runs=$(yq . rundirs.yml) | ||
argo submit argo.yaml -p runs="$runs" | ||
argo submit argo.yaml -p runs="$runs" -p output_url="$output_url" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
model_type: sklearn_random_forest | ||
hyperparameters: | ||
max_depth: 13 | ||
n_estimators: 1 | ||
num_batches: 5 | ||
mask_to_surface_type: none | ||
files_per_batch: 13 | ||
input_variables: | ||
- T | ||
- sphum | ||
output_variables: | ||
- dQ1 | ||
- dQ2 | ||
random_seed: 99 | ||
|