Downloads · 30 days
0
kitamoto-lab/digital_typhoon_neurips23_forecasting
digital_typhoon_neurips23_forecasting is a machine learning model from kitamoto-lab. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Note: Benchmarks in their original form can be found at the original github repo.
Downloads · 30 days
0
Access
Public
Updated Sep 13, 2023
Repo size
221 MB
Likes
0
Public
Click a slice to open those files.
.ckpt132 MB · 100%
From the Hugging Face model README
Note: Benchmarks in their original form can be found at the original github repo.
All of the below commands should be run in a Docker container built using the Dockerfile in the repo, with the data and repo being exposed as volumes in the container.
To build:
docker build -t benchmarks_img .
To run an interactive shell:
docker run -it --shm-size=2G --gpus all -v /path/to/neurips2023-benchmarks:/neurips2023-benchmarks -v /path/to/datasets/:/data benchmarks_img
Ensure that when running the following commands, the appropriate path to WP/ is specified in the hyperparameters.py files in ConvLSTM/ and ResNet/ in the variable data_dir.
To train and run the pipeline, two models must be trained:
First, the convolutional LSTM.
Then, using the trained convLSTM, the ResNET.
Instructions to train the convLSTM are as follows:
Enter the directory forecasting
Run
python3 train_convLSTM.py
ConvLSTM_logs/lightning_logs/version_[i]. This is where validation indices are also saved in validation_indices.txtInstructions to train the ResNet are as follows:
Enter the directory forecasting
Two paths must be set in the train_resnet.py file. On line 32, the path to the convLSTM saved model must be specified. Similarly, on line 168, the path to the file specifying what indices are validation indices must be specified.
Run
python3 train_resnet.py
ResNet_logs/lightning_logs/version_[i].Instructions to evaluate the pipeline and produce RMSE, difference statistics as well as plots are as follows:
Enter the directory forecasting
Three paths must be set in evaluate_forecasting_pipeline.py. On line 150, set the path to the dataset indices used as validation indices during the convLSTM training. on Line 153, set the path to the convLSTM model weights. On line 156, set the path to the ResNet model weights.
Run
python3 evaluate_forecasting_pipeline.py
Pipeline_logs/forecast_plots/.