{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "[Sebastian Raschka](http://sebastianraschka.com) \n", "\n", "- [Open in IPython nbviewer](http://nbviewer.ipython.org/github/rasbt/pattern_classification/blob/master/python_howtos/scikit_linear_classificationreate=1) \n", "\n", "- [Link to this IPython notebook on Github](http://nbviewer.ipython.org/github/rasbt/pattern_classification/blob/master/machine_learning/scikit-learn/scikit_linear_classification.ipynb) \n", "\n", "- [Link to the GitHub Repository pattern_classification](https://github.com/rasbt/pattern_classification)" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Sebastian Raschka \n", "last updated: 2016-07-16 \n", "\n", "CPython 3.5.1\n", "IPython 5.0.0\n", "\n", "numpy 1.11.0\n", "scikit-learn 0.17.1\n", "matplotlib 1.5.1\n" ] } ], "source": [ "%load_ext watermark\n", "%watermark -a 'Sebastian Raschka' -u -d -v -p numpy,scikit-learn,matplotlib" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "
1,14.23,1.71,2.43,15.6,127,2.8,3.06,.28,2.29,5.64,1.04,3.92,1065\n", "1,13.2,1.78,2.14,11.2,100,2.65,2.76,.26,1.28,4.38,1.05,3.4,1050\n", "[...]\n", "2,12.37,.94,1.36,10.6,88,1.98,.57,.28,.42,1.95,1.05,1.82,520\n", "2,12.33,1.1,2.28,16,101,2.05,1.09,.63,.41,3.27,1.25,1.67,680\n", "[...]\n", "3,12.86,1.35,2.32,18,122,1.51,1.25,.21,.94,4.1,.76,1.29,630\n", "3,12.88,2.99,2.4,20,104,1.3,1.22,.24,.83,5.4,.74,1.42,530" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "
predicted class | \n", "\t\t||||
class 1 | \n", "\t\tclass 2 | \n", "\t\tclass 3 | \n", "\t||
actual class | \n", "\t\tclass 1 | \n", "\t\tTrue positives | \n", "\t\t||
class 2 | \n", "\t\tTrue positives | \n", "\t\t|||
class 3 | \n", "\t\tTrue positives | \n", "\t