Introduction to Scikit-Learn and Pandas
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
notebooks add some visu code Apr 27, 2016
.gitignore init Apr 21, 2016
Makefile init Apr 21, 2016
README.md cosmetic changes Apr 27, 2016
fetch_data.py cosmetic changes Apr 27, 2016
ipynbhelper.py init Apr 21, 2016

README.md

Introduction to predictive analytics with pandas and scikit-learn

This repository contains notebooks to get started with predictive analytics using scikit-learn and pandas.

This material is strongly inspired from the EuroPython 2014 scikit-learn tutorial

which was inspired by http://github.com/jakevdp/sklearn_scipy2013 by Jake VanderPlas @jakevdp | http://jakevdp.github.com

Installation Notes

This tutorial will require recent installations of numpy, scipy, matplotlib, scikit-learn, pandas and Pillow (or PIL).

For users who do not yet have these packages installed, a relatively painless way to install all the requirements is to use a package such as Anaconda, which can be downloaded and installed for free.

Please download in advance the datasets mentionned in Data Downloads

With the IPython/jupyter notebook

The recommended way to access the materials is to execute them in the IPython/jupyter notebook. If you have the notebook installed, you should download the materials (see below), go the the notebooks directory, and launch IPython notebook from there by typing:

cd notebooks
jupyter notebook  # ipython notebook if old version

in your terminal window. This will open a notebook panel load in your web browser.

Downloading the Tutorial Materials

I would highly recommend using git, not only for this tutorial, but for the general betterment of your life. Once git is installed, you can clone the material in this tutorial by using the git address shown above:

If you can't or don't want to install git, there is a link above to download the contents of this repository as a zip file. I may make minor changes to the repository in the days before the tutorial, however, so cloning the repository is a much better option.

Data Downloads

The data for this tutorial is not included in the repository. We will be using several data sets during the tutorial: most are built-in to scikit-learn, which includes code which automatically downloads and caches these data. Because the wireless network at conferences can often be spotty, it would be a good idea to download these data sets before arriving at the conference. You can do so by using the fetch_data.py included in the tutorial materials.

You will also need:

https://dl.dropboxusercontent.com/u/2140486/data/titanic_train.csv
https://dl.dropboxusercontent.com/u/2140486/data/adult_train.csv