Training scripts
Dataset-independence
-
train.py: train one model (eg. beta-vae, IWAE, bivae) on one specific hyperparamter config- E.g. Train
BiVAEonosmnx_roadsdata of the followingcities, with images ofbgcolors
nohup python train.py --model_name="bivae" \ --latent_dim=10 --hidden_dims 32 64 128 256 --adv_dim 32 32 32 --adv_weight 1.0 \ --data_root="/data/hayley-old/osmnx_data/images" \ --data_name="osmnx_roads" \ --cities 'la' 'charlotte' 'vegas' 'boston' 'paris' \ 'amsterdam' 'shanghai' 'seoul' 'chicago' 'manhattan' \ 'berlin' 'montreal' 'rome' \ --bgcolors "k" "r" "g" "b" "y" --n_styles=5 \ --zooms 14 \ --gpu_id=2 --max_epochs=300 --terminate_on_nan=True \ -lr 3e-4 -bs 32 \ --log_root="/data/hayley-old/Tenanbaum2000/lightning_logs/2021-05-18/" &
- E.g.: Train
BIVAEon Rotated MNIST of optionally specified subset (given as a filepath to.npyfile containing the indices from the original Training MNIST data)
## Specify which indices to use among the MNIST -- comparable to DIVA's experiments ## change 0 to anything inbtw 0,...,9 nohup python train.py --model_name="bivae" \ --latent_dim=128 --hidden_dims 32 64 64 64 --adv_dim 32 32 32 \ --data_name="multi_rotated_mnist" --angles -45 0 45 --n_styles=3 \ --selected_inds_fp='/data/hayley-old/Tenanbaum2000/data/Rotated-MNIST/supervised_inds_0.npy' \ --gpu_id=2
- E.g.: Train Bivae on multi styles of maptiles from specified cities
# Train BiVAE on Multi Maptiles MNIST nohup python train.py --model_name="bivae" \ --latent_dim=10 --hidden_dims 32 64 128 256 --adv_dim 32 32 32 --adv_weight 15.0 \ --data_name="multi_maptiles" \ --cities la paris \ --styles CartoVoyagerNoLabels StamenTonerBackground --n_styles=3 \ --zooms 14 \ --gpu_id=2 --max_epochs=400 --terminate_on_nan=True \ -lr 3e-4 -bs 32 \ --log_root="/data/hayley-old/Tenanbaum2000/lightning_logs/2021-01-23/" &
- E.g. Train
Hyperparameter tuning using Ray Tune
tune_asha.py: UseTune's AsyncHyperBandScheduler to search hyperparameter space more efficiently. Use--tune_metricto specify the value oftune.run'smetricargument, e.g.--tune_metric lossfortune_asha_with_beta_scheduler.py:- `
Dataset-specific
Rotated MNIST
tune_asha_mnists.py
osmnx_roads
tune_asha_osmnx_roads.py
Release files for reprlearn 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| reprlearn-0.0.1.tar.gz | 65.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| reprlearn-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 172.4 kB
Release files / reprlearn-0.0.1.tar.gz
| Download URL | reprlearn-0.0.1.tar.gz |
|---|---|
| Size | 65.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
897b07faab14676e28a64de1acca8615a3a150cc89e86c7bbd7d0bf68baae648
|
|
BLAKE2b-256 checksum How to use checksums |
615addbfdf47de7f24580bcd0984dcd82ae3aef1aecceb9ab0a28e0fcfb8eae6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.3
|
Release files / reprlearn-0.0.1-py3-none-any.whl
| Download URL | reprlearn-0.0.1-py3-none-any.whl |
|---|---|
| Size | 107.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
424504eb5ae9266c7e0037f25b5a26d834b23ffe4bdd5db547007f5f815b1b1a
|
|
BLAKE2b-256 checksum How to use checksums |
8255ca61e8846bee044c2dcb3b3f588c086bdab22bca46c65c52c8f132ecf115
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.3
|