Pip the machine learning library from one end (Ubuntu)

I pip all the libraries I know. Long live pip! If you find a new library, add more and more.

Installation of pip body

$ sudo apt-get install python-pip

How to use pip

For some reason, in my environment, it doesn't work unless I use $ sudo -H pip install pip library name. Other sites etc. say $ pip install library name, so I will go here below. I wonder if there is anyone who needs sudo like me ~

Library of scientific computing

Libraries: numpy, scipy, pandas, matplotlib, scikit-image pip install numpy scipy pandas matplotlib scikit-image

Machine learning

Library: chainer, tensorflow, Theano, keras, scikit-learn pip install chainer tensorflow Theano keras scikit-learn I don't have a GPU I don't have, so I don't know CUDA or cuDNN. I want a GPU ~ Also, Caffe seems to be difficult to install. (Seen on the net)

Note only Open AI Gym

$ sudo apt-get install -y python-numpy python-dev cmake zlib1g-dev libjpeg-dev xvfb libav-tools xorg-dev python-opengl libboost-all-dev libsdl2-dev swig It seems that you can't install all of them unless you install them first. (Information from Installing everything in README.rst on Official github) And all environment installation $ sudo pip install gym[all]

Not a pip but a machine learning library

Discover the recently popular library of deep reinforcement learning keras-rl! First install git $ sudo apt-get install git After that, according to README.md (It seems better to include h5py as well) $ pip install h5py $ cd" Directory for github " $ git clone https://github.com/matthiasplappert/keras-rl.git $ cd keras-rl $ sudo python setup.py install Since the example is interesting, I will introduce it $ python" Directory for github "/keras-rl/examples/dqn_cartpole.py I'll do my best to endure it ~ There seem to be many other things. Also, press Ctrl + C to finish.

reference

Deep learning × Python I learned about keras and keras-rl by looking at this article. It doesn't seem to be very famous, but keras is nice because the code is intuitively short.

Postscript

For Python3 $ sudo apt-get install python3-pip Install pip3 with later $ pip3 install library name OK keras-rl is $ sudo python3 setup.py install OK if you change it to Personally, I'd like to change everything to Python 3 as soon as possible. The reality is that Ubuntu 16.04 LTS still has Python 2 as its standard. It's OK if you install both for the time being

Recommended Posts

Pip the machine learning library from one end (Ubuntu)
Install the machine learning library TensorFlow on fedora23
Machine learning library dlib
Machine learning library Shogun
Installation of TensorFlow, a machine learning library from Google
Othello ~ From the tic-tac-toe of "Implementation Deep Learning" (4) [End]
I installed the automatic machine learning library auto-sklearn on centos7
Learning from the basics Artificial intelligence textbook Chapter 5 Chapter end problems
[Machine learning] Understanding uncorrelatedness from mathematics
[Machine learning] Understand from mathematics why the correlation coefficient ranges from -1 to 1.
Newton's method for machine learning (from one variable to multiple variables)
Introduction to Machine Learning Library SHOGUN
I tried calling the prediction API of the machine learning model from WordPress
I tried to visualize the model with the low-code machine learning library "PyCaret"
Python learning memo for machine learning by Chainer until the end of Chapter 2
Record the steps to understand machine learning
Use machine learning APIs A3RT from Python
Learning notes from the beginning of Python 1
From Python 3.4, pip becomes the standard installer! ??
[Machine learning] What is the LP norm?
Learning notes from the beginning of Python 2
Try to write code from 1 using the machine learning framework chainer (mnist edition)
Machine learning
Machine learning starting from 0 for theoretical physics students # 1
Upgrade the Azure Machine Learning SDK for Python
Python & Machine Learning Study Memo ②: Introduction of Library
Notes on machine learning (updated from time to time)
Machine learning algorithms (from two-class classification to multi-class classification)
Machine learning starting from scratch (machine learning learned with Kaggle)
Overview of machine learning techniques learned from scikit-learn
About the development contents of machine learning (Example)
Using the 3D plot library MayaVi from Julia
Machine learning starting from 0 for theoretical physics students # 2
[CodeIQ] I wrote the probability distribution of dice (from CodeIQ math course for machine learning [probability distribution])
Predicting offensive and defensive attributes from the Yu-Gi-Oh! Card name --Yu-Gi-Oh! Data Science 3. Machine Learning
Python Machine Learning Programming Chapter 1 Gives Computers the Ability to Learn from Data Summary