The evaluation is performed using run_benchmark_evaluation.py in conjunction with a configuration file (e.g., public_configs) that defines data loader settings for specific models, ground truths, years, and resolutions.
For small datasets, you can run the script locally using the DirectRunner. For full-scale evaluations, use DataflowRunner to execute the job on Google Cloud Dataflow. When using DataflowRunner, additional arguments must be passed after a -- separator to configure the Dataflow job (e.g., --project, --region, --temp_location).
# Local execution for small data
python run_benchmark_evaluation.py \
--config=public_configs \
--prediction=hres \
--target=era5 \
--resolution=64x32 \
--year=2020 \
--time_start=2020-01-01 \
--time_stop=2020-01-01T12 \
--lead_time_start=0 \
--lead_time_stop=12 \
--lead_time_frequency=6 \
--output_dir=./results/ \
--runner=DirectRunner
# Full evaluation using Dataflow
export BUCKET=my-bucket
export PROJECT=my-project
export REGION=us-central1
python run_benchmark_evaluation.py \
--config=public_configs \
--prediction=hres \
--target=era5 \
--resolution=64x32 \
--year=2020 \
--time_start=2020-01-01 \
--time_stop=2020-01-01T12 \
--lead_time_start=0 \
--lead_time_stop=12 \
--lead_time_frequency=6 \
--output_dir=gs://$BUCKET/tmp/ \
--runner=DataflowRunner \
-- \
--project=$PROJECT \
--region=$REGION \
--temp_location=gs://$BUCKET/tmp/ \
--setup_file=../setup.py \
--job_name=wbx-evaluation