In order to have the plots inside of the notebook:
%matplotlib inline
import sys
import matplotlib as mlp
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import sklearn
import scipy
import IPython
import seaborn as sns
print('Python version: {}\n'.format(sys.version))
print(np.__version__)
print(mlp.__version__)
print(pd.__version__)
print(sklearn.__version__)
print(scipy.__version__)
print(IPython.__version__)
print(sns.__version__)
Python version: 2.7.8 |Anaconda 2.1.0 (x86_64)| (default, Aug 21 2014, 15:21:46) [GCC 4.2.1 (Apple Inc. build 5577)] 1.9.0 1.4.0 0.14.1 0.15.2 0.14.0 2.2.0 0.5.0
Make sure that Seaborn has the 0.5.0
version as it does not have heatmap
function that I will use to visualize the confusion matrix
assert np.__version__ == '1.9.0'
assert mlp.__version__ == '1.4.0'
assert pd.__version__ == '0.14.1'
assert sklearn.__version__ == '0.15.2'
assert scipy.__version__ == '0.14.0'
assert IPython.__version__ == '2.2.0'
assert sns.__version__ == '0.5.0'
This is the exact environment of my setup, if you have updated versions of the libraries and/or anaconda, it should be fine.