Docker based setup for scikit http://scikit-learn.org/stable/index.html and mxnet https://mxnet.apache.org/
- Install docker: https://docs.docker.com/docker-for-windows/install/
- Share the drive where these files are located: https://docs.docker.com/docker-for-windows/#docker-settings
- Build the image:
docker build -t scikit . - Run the example plotter:
docker run -v %cd%:/mnt/scikit --rm -i -t scikit python /mnt/scikit/plot_classifier_comparison.py - Check the output:
output\plot_classifier_comparison.png - Run a my_script.py in a different directory:
docker run -v /path/to/script:/mnt/scikit --rm -i -t scikit python /mnt/scikit/my_script.py
- Install docker:
brew install docker - Build the image:
docker build -t scikit . - Run the example plotter:
docker run -v $PWD:/mnt/scikit --rm -i -t scikit python /mnt/scikit/plot_classifier_comparison.py - Check the output:
output\plot_classifier_comparison.png - Run a my_script.py in a different directory:
docker run -v /path/to/script:/mnt/scikit --rm -i -t scikit python /mnt/scikit/my_script.py
Since there is no window manager, you will likely need to modify your script to render figures to an image file, ex:
import matplotlib
matplotlib.use('Agg')
# Do things
figure.savefig('/mnt/scikit/plot_classifier_comparison.png')