Want to use Scikit-learn learn machine learning, yesterday installed a bit, today sorted out.
There are two ways of using this package.
One, simple rough, direct download Winpython, installed can be used, the IDE is a self-brought Spyder.
Second, 1, first install Python, configure environment variables, and so on, this does not say much.
2, install pip:https://bootstrap.pypa.io/get-pip.py directly copy the content to get-pip.py and then Python executes,
3, sequentially installed NumPy, scipy, matplotlib, Scikit-learn these packages (WHL format), can be directly used
Pip install numpy command directly installed, but my side of the internet is not stable, so the package down directly installed.
http://www.lfd.uci.edu/~gohlke/pythonlibs/, download the time to pay attention to the corresponding Python version number.
4. Test after the installation is complete.
Code reprinted from: http://www.cnblogs.com/zhuyp1015/archive/2012/07/17/2596495.html
""" ' 17*x^2-16*|x|*y + 17*y^2 = 225 ' """ Import NumPy as NP Import = Np.arange ( -5.0, 5.0, 0.1= Np.arange ( -5.0, 5.0, 0.1==) * x * * 2-16 * NP.ABS (x) * Y + + * y * *2-225='r') plt.show ()
After running with idle:
5, use the example of the official website to run to see it ~
Http://scikit-learn.org/stable/tutorial/basic/tutorial.html#machine-learning-the-problem-setting
Win7 64-bit installation of Scikit-learn and some Python packages