Contains all code shown in the Datapero events.
This first session introduce Python as 'the machine learning language', so our main focus will be how to setup the best environement for python/IA developpement.
How to start the session?
# in a bash terminal, install tpp for 'in shell presentation'
sudo apt-get update -y; apt-get install -y tpp
# then start the presentation and follow instructions
tpp presentations/session-1-dev-presentation.md
The given docker file is based on https://github.com/tiangolo/python-machine-learning-docker images that supports many optimized drivers and libraries (CUDA, Intel MKL). it includes some additionnal tools such as Python Jupyter Notebooks.
# Run the Docker container, it will build it if necessary
docker-compose -f docker/docker-compose.yml run --rm --service-port --name datapero python-learning bash
# Run anything you want into it.
# ...
In your Docker session, run:
./notebooks/start_notebooks.sh
Then open http://127.0.0.1:2347/notebooks/notebooks/welcome.ipynb in your browser.
To be sure all notebooks are always fully functionnal and pass python module upgrade, let's run some unit test:
pytest --nbmake "./notebooks/"