Quantcast
Channel: Kurt's Weblog
Viewing all articles
Browse latest Browse all 108

scikit-learn and an ipython notebook

$
0
0
I took a look at scikit-learn today by watching Jake's video from PyData 2012.



I made an ipython notebook while following along. I was on ubuntu 12.04, and there are newer versions out of the main libraries, so here is what I did to get set up (and to try out putting code in my blog via a github gist):



When I went to make a nbviewer of the notebook in a gist, I ran into trouble. When I make a gist, I get a URL like this that has my account in the URL:

https://gist.github.com/schwehr/4748729

But what I had to do was remove the account from the URL before I pasted it into http://nbviewer.ipython.org/:

https://gist.github.com/4748729

http://nbviewer.ipython.org/4748729/

And finally, here is just the python in the form of a gist without the ipython notebook wrapping it:


Viewing all articles
Browse latest Browse all 108

Trending Articles