$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
sudo apt-get update
sudo apt-get -y install python-pip
sudo apt-get install build-essential python-dev python-setuptools python-numpy python-scipy libatlas-dev libatlas3gf-base
sudo pip install scikit-learn
sudo pip install pandas
$ python
Python 2.7.6 (default, Oct 26 2016, 20:30:19)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sklearn
>>> sklearn.__version__
$ python xor-train.py
('score = ', 1.0)
scikit-learnのインストール in Ubuntu http://www.iandprogram.net/entry/2015/09/15/221518
GCPにて実施