机器学习20170410
BindeiMac:~ binlin$ sudo easy_install jieba
Searching for jieba
Reading https:
Best match : jieba 0.38
Downloading https:
Processing jieba- 0.38 . zip
Writing /tmp/easy_install-iZPK05 /jieba- 0.38 /setup. cfg
Running jieba- 0.38 /setup. py -q bdist_egg -- dist-dir /tmp/easy_install-iZPK05 /jieba- 0.38 /egg-dist -tmp -ZWbOQ1
zip_safe flag not set ; analyzing archive contents...
jieba. _compat: module references __file__
jieba. analyse. tfidf: module references __file__
Adding jieba 0.38 to easy-install . pth file
Installed /Library/Python/2.7 /site-packages /jieba- 0.38 -py2 .7 . egg
Processing dependencies for jieba
Finished processing dependencies for jieba
sh-3.2
Requirement already satisfied: matplotlib in /System/Library/Frameworks/Python.framework/Versions/2.7 /Extras/lib/python
Requirement already satisfied: numpy>=1.5 in /System/Library/Frameworks/Python.framework/Versions/2.7 /Extras/lib/python (from matplotlib)
Requirement already satisfied: python-dateutil in /System/Library/Frameworks/Python.framework/Versions/2.7 /Extras/lib/python (from matplotlib)
Collecting tornado (from matplotlib)
Downloading tornado-4.4 .3 .tar.gz (463 kB)
100 % |████████████████████████████████| 471 kB 1.5 MB/s
Requirement already satisfied: pyparsing>=1.5 .6 in /System/Library/Frameworks/Python.framework/Versions/2.7 /Extras/lib/python (from matplotlib)
Collecting nose (from matplotlib)
Downloading nose-1.3 .7 -py2-none -any .whl (154 kB)
100 % |████████████████████████████████| 163 kB 2.5 MB/s
Collecting singledispatch (from tornado->matplotlib)
Downloading singledispatch-3.4 .0 .3 -py2.py3-none -any .whl
Collecting certifi (from tornado->matplotlib)
Downloading certifi-2017.1 .23 -py2.py3-none -any .whl (382 kB)
100 % |████████████████████████████████| 389 kB 1.6 MB/s
Collecting backports_abc>=0.4 (from tornado->matplotlib)
Downloading backports_abc-0.5 -py2.py3-none -any .whl
Requirement already satisfied: six in /System/Library/Frameworks/Python.framework/Versions/2.7 /Extras/lib/python (from singledispatch->tornado->matplotlib)
Installing collected packages: singledispatch, certifi, backports-abc, tornado, nose
Running setup.py install for tornado ... done
Successfully installed backports-abc-0.5 certifi-2017.1 .23 nose-1.3 .7 singledispatch-3.4 .0 .3 tornado-4.4 .3
sh-3.2
1.3 .1 /System/Library/Frameworks/Python.framework/Versions/2.7 /Extras/lib/python/matplotlib/__init__.pyc
sh-3.2
sh-3.2
Python 2.7 .10 (default, Jul 14 2015 , 19 :46 :27 )
[GCC 4.2 .1 Compatible Apple LLVM 6.0 (clang-600.0 .39 )] on darwin
Type "help" , "copyright" , "credits" or "license" for more information.
>>> import numpy as np
>>> import pylab as pl
>>> x = [1 ,2 ,3 ,4 ,5 ]
>>> y = [1 ,4 ,9 ,16 ,25 ]
>>> pl.plot(x,y)
[<matplotlib.lines.Line2D object at 0x107602fd0 >]
>>> pl.show
<function show at 0x102f7e8c0 >
>>> pl.show()
>>>
sklearn
theano