{ "metadata": { "name": "", "signature": "sha256:b5a6d4f682b4d92373517ca0de18df2085350441eff05af245c8b4964db53c34" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "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", "collapsed": false, "input": [ "import time\n", "import platform\n", "print('Last updated: %s' %time.strftime('%d/%m/%Y'))\n", "print('Created using Python', platform.python_version())" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "Last updated: 26/06/2014\n", "Created using Python 3.4.1\n" ] } ], "prompt_number": 1 }, { "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