Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/handley-lab/2022-cambridge-iccs
Institute of Computing for Climate Science Summer School 2022 - Programme: Training ML models
https://github.com/handley-lab/2022-cambridge-iccs
Last synced: about 2 months ago
JSON representation
Institute of Computing for Climate Science Summer School 2022 - Programme: Training ML models
- Host: GitHub
- URL: https://github.com/handley-lab/2022-cambridge-iccs
- Owner: handley-lab
- Created: 2022-09-21T16:30:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-05T18:20:22.000Z (about 2 years ago)
- Last Synced: 2023-04-25T12:03:57.797Z (over 1 year ago)
- Language: Jupyter Notebook
- Size: 6.31 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Training ML Models
Thursday workshop at the [Institute of Computing for Climate Science Summer School 2022](https://cambridge-iccs.github.io/summerschool.html).
- Slides: [training_ml_models.pdf](training_ml_models.pdf)
- Notebook: [training_ml_models.ipynb](training_ml_models.ipynb)
- Script: [training_ml_models.py](training_ml_models.py)# Download
```bash
git clone https://github.com/handley-lab/2022-cambridge-iccs.git
cd 2022-cambridge-iccs
```# Installation instructions
You will need to install
- notebook
- matplotlib
-
- scikit-learn
- tensorflow
- torchin that order -- you can leave the tensorflow/pytorch installation in the background until exercises 2 and 3 if downloads are slow.
All are pip-installable, which you should do either:
- via pip
- via conda
- via your system installation (`apt-get`, `yum`, `pacman`, etc) (none of these packages are controversial),The way I do it when not using my arch system packages is with virtual environments:
```bash
python -m venv my_venv
source my_venv/bin/activate
pip install notebook matplotlib scikit-learn tensorflow torch
python -m ipykernel install --user --name=my_venv
```
The final line tells the jupyter notebook where to look for the virtual environment.# Run
Start the jupyter notebook
```bash
jupyter-notebook training_ml_models.ipynb
```
and select the virtual environment we've just installed![Selecting](images/jupyter_venv.jpg)
## FAQ
- How do I convert between notebooks and python scripts? [py2nb](https://github.com/williamjameshandley/py2nb)
- Why would I want to do that? [vimteractive](https://github.com/williamjameshandley/vimteractive)