Climate-Learning

Bookmark this to keep an eye on my project updates!

View the Project on GitHub georgemilosh/Climate-Learning

Stochastic Weather Generator

This folder was originally conceived to address training Variational Autoencoder (VAE). It later evolved in a general folder for Stochastic Weather Generator (SWG).

Folder structure

Usage:

If you would like to work with SWG you must run vae_learn2.py even if you do not intend to train VAE because vae_learn2.py generates the necessary folder structure consistent with k-fold cross validation. The first step is to call:

python vae_learn2.py <folder_name>

Don’t forget to set up the correct **kwargs

After the routine has been called you may inspect the quality of reconstruction (if VAE was used) via the following script

python reconstruction.py <folder_name> <checkpoint_number> <random_seed>

To inspect the loss during training use may use

python history.py <folder_name> <number_of_folds>
python histroy_training.py <folder_name> <number_of_folds>

Direct input

If you are don’t want to use dimensinoality reduction, to compute the matrix of analogs for the SWG you may use

python analogue_dario.py <folder> <coefficients> <NN>

where typical usage is to set <coefficients>=1,5,10,50,100,500 and <NN>=100

Dimansionality reduction

In this case you run the following

analogue_george.py <folder> <coefficients> <NN>

To use the matrix of analogs and compute the committor function (independent of whether or not you use dimesnionality reduction) you should use

python committor_analogue.py <committor_file>

To investigate the resulting skill you should look at the notebook test_committor_dario.ipynb

To use the analogs and compute the long trajectories you may inspect the notebook trajectory_analogue.ipynb