mirror of
https://github.com/ArthurDanjou/ml_exercises.git
synced 2026-01-14 12:14:38 +01:00
update readme
This commit is contained in:
20
README.md
20
README.md
@@ -12,19 +12,23 @@ The programming exercises are written in Python. If you're unfamiliar with Pytho
|
|||||||
|
|
||||||
#### Working on your own computer
|
#### Working on your own computer
|
||||||
The [Python tutorial](https://github.com/cod3licious/python_tutorial) includes some notes on how to install Python and Jupyter Notebook on your own computer. <br>
|
The [Python tutorial](https://github.com/cod3licious/python_tutorial) includes some notes on how to install Python and Jupyter Notebook on your own computer. <br>
|
||||||
Please make sure you're using Python 3 and all libraries listed in the [`requirements.txt`](/requirements.txt) file are installed and up to date. You can verify this with the [`test_installation.ipynb`](/test_installation.ipynb) notebook.
|
Please make sure you're using Python 3 and all libraries listed in the [`requirements.txt`](/requirements.txt) file are installed and up to date. You can verify this with the [`test_installation.ipynb`](/test_installation.ipynb) notebook. <br>
|
||||||
|
The dependencies listed in `requirements.txt` are sufficient to execute most notebooks. To run notebook 6 you additionally need to install `torch`, `torchvision`, and `skorch` (or `tensorflow`, depending on the version of the notebook you want to execute).
|
||||||
|
|
||||||
#### Working in the cloud
|
#### Working in the cloud
|
||||||
|
|
||||||
##### Using Google Colab
|
If you are unable to install Python on your own computer, you can also run the notebooks in a cloud environment.
|
||||||
|
|
||||||
If you have a Google account, you can also run the code in the cloud using Google Colab:
|
|
||||||
[](https://colab.research.google.com/github/cod3licious/ml_exercises) <br>
|
|
||||||
While Google Colab already includes most packages that we need, should you require an additional library (e.g., `skorch` for training PyTorch neural networks in notebook 6), you can install a package by executing `!pip install package` in a notebook cell. With Colab, it is also possible to run code on a GPU, but this has to be manually selected.
|
|
||||||
|
|
||||||
|
|
||||||
##### Using MyBinder
|
##### Using MyBinder
|
||||||
|
|
||||||
If you don't have a Google account, you can also use MyBinder, which does not require you to log in:
|
The easiest way to run the notebooks is using MyBinder:
|
||||||
[](https://mybinder.org/v2/gh/cod3licious/ml_exercises/main) <br>
|
[](https://mybinder.org/v2/gh/cod3licious/ml_exercises/main) <br>
|
||||||
However, this will take a while to load and might be very slow or even crash due to insufficient RAM for some of the exercises.
|
However, please note that MyBinder may take a while to load and some notebooks might be slow or even crash due to insufficient RAM. Furthermore, by default this environment does not include the necessary libraries to run notebook 6, since installing the neural network dependencies takes very long.
|
||||||
|
|
||||||
|
|
||||||
|
##### Using Google Colab
|
||||||
|
|
||||||
|
If you have a Google account, you can also run the notebooks in Google Colab, which is faster than MyBinder:
|
||||||
|
[](https://colab.research.google.com/github/cod3licious/ml_exercises) <br>
|
||||||
|
While Google Colab already includes most packages that we need, should you require an additional library (e.g., `skorch` for training PyTorch neural networks in notebook 6), you can install a package by executing `!pip install package` in a notebook cell. With Colab, it is also possible to run code on a GPU, but this has to be manually selected. Please note that for some notebooks you need to additionally upload the required data files separately.
|
||||||
|
|||||||
Reference in New Issue
Block a user