AngieC96 / statistical-machine-learning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Statistical Machine Learning

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: ginevra.carbone@phd.units.it

Useful links

Linux Setup

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

About


Languages

Language:Jupyter Notebook 83.6%Language:HTML 16.4%Language:R 0.0%