FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add theano, lasagne, nolearn, and more libs by dansbecker · Pull Request #1 · Kaggle/docker-python · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension No extension  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
19 changes: 16 additions & 3 deletions Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
FROM continuumio/anaconda3:latest

RUN conda install pip statsmodels seaborn python-dateutil nltk -y && \
pip install pytagcloud pyyaml ggplot nolearn && \
pip install pytagcloud pyyaml ggplot theano joblib husl && \
apt-get install -y libglib2.0-0 libxext6 libsm6 libxrender1 libfontconfig1 --fix-missing && \
apt-get update && apt-get install -y git && apt-get install -y build-essential && \
#word cloud
pip install git+git://github.com/amueller/word_cloud.git && \
#xgboost
cd /usr/local/src && mkdir xgboost && cd xgboost && \
git clone https://github.com/dmlc/xgboost.git && cd xgboost && \
make && cd wrapper && python setup.py install

make && cd wrapper && python setup.py install && \
#lasagne
cd /usr/local/src && mkdir Lasagne && cd Lasagne && \
git clone https://github.com/Lasagne/Lasagne.git && cd Lasagne && \
pip install -r requirements.txt && python setup.py install && \
#nolearn
cd /usr/local/src && mkdir nolearn && cd nolearn && \
git clone https://github.com/dnouri/nolearn.git && cd nolearn && \
python setup.py install && \
# put theano compiledir inside /tmp (it needs to be in writable dir)
printf "[global]\nbase_compiledir = /tmp/.theano\n" > /.theanorc

# set backend for matplotlibrc to Agg
RUN matplotlibrc_path=$(python -c "import site, os, fileinput; packages_dir = site.getsitepackages()[0]; print(os.path.join(packages_dir, 'matplotlib', 'mpl-data', 'matplotlibrc'))") && \
sed -i 's/^backend : Qt4Agg/backend : Agg/' $matplotlibrc_path

Back | FazBrowse Home | New Git URL