Please use the dedicated forum on Moodle for questions on theory and exercises.
If you notice some errors in the notebooks/homeworks contact me at: [email protected]
- Stackexchange
- Github guide
- Virtualenvs in python3
- Beginners numpy tutorial
- Beginners pandas tutorial
- Pyro 1.2.1 documentation
Download, clone or fork (your choice) this repository in a directory PATH_TO_DIR/
.
Create a virtual environment using python3
(commands are provided for Debian-like GNU/Linux distributions)
cd PATH_TO_DIR/statistical-machine-learning/
sudo apt-get install python3-pip
python3 -m pip install --user virtualenv
python3 -m virtualenv -p "$(which python3)" venv
Now you should see PATH_TO_DIR/statistical-machine-learning/venv/
folder.
Activate the environment and install the requirements:
source venv/bin/activate
python3 -m pip install -r ./requirements.txt
Register the just-installed virtual environment for use with Jupyter:
python3 -m ipykernel install --user --name statistical-machine-learning --display-name "Python (SML virtualenv)"
To run the notebooks in the folder [pandas and scikitlearn](#pandas and scikitlearn) also run the following commands:
pip3 install xlrd
pip3 install -U scikit-learn
Open your notebooks using jupyter-notebook (or jupyter-lab):
python3 -m jupyter notebook
To deactivate the environment use deactivate
command.
To convert the .ipynb
file in HTML
use the following command
jupyter nbconvert --to html notebook.ipynb