{"cells": [{"cell_type": "markdown", "metadata": {}, "source": ["# 2A.ml - Machine Learning et Marketting - correction\n", "\n", "Classification binaire, correction."]}, {"cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [{"name": "stdout", "output_type": "stream", "text": ["Populating the interactive namespace from numpy and matplotlib\n"]}], "source": ["%matplotlib inline"]}, {"cell_type": "code", "execution_count": 2, "metadata": {"collapsed": true}, "outputs": [], "source": ["import matplotlib.pyplot as plt"]}, {"cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [{"data": {"text/html": ["Plan\n", "
\n", ""], "text/plain": ["\n", " | age | \n", "job | \n", "marital | \n", "education | \n", "default | \n", "balance | \n", "housing | \n", "loan | \n", "contact | \n", "day | \n", "month | \n", "duration | \n", "campaign | \n", "pdays | \n", "previous | \n", "poutcome | \n", "y | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4516 | \n", "33 | \n", "services | \n", "married | \n", "secondary | \n", "no | \n", "-333 | \n", "yes | \n", "no | \n", "cellular | \n", "30 | \n", "jul | \n", "329 | \n", "5 | \n", "-1 | \n", "0 | \n", "unknown | \n", "no | \n", "
4517 | \n", "57 | \n", "self-employed | \n", "married | \n", "tertiary | \n", "yes | \n", "-3313 | \n", "yes | \n", "yes | \n", "unknown | \n", "9 | \n", "may | \n", "153 | \n", "1 | \n", "-1 | \n", "0 | \n", "unknown | \n", "no | \n", "
4518 | \n", "57 | \n", "technician | \n", "married | \n", "secondary | \n", "no | \n", "295 | \n", "no | \n", "no | \n", "cellular | \n", "19 | \n", "aug | \n", "151 | \n", "11 | \n", "-1 | \n", "0 | \n", "unknown | \n", "no | \n", "
4519 | \n", "28 | \n", "blue-collar | \n", "married | \n", "secondary | \n", "no | \n", "1137 | \n", "no | \n", "no | \n", "cellular | \n", "6 | \n", "feb | \n", "129 | \n", "4 | \n", "211 | \n", "3 | \n", "other | \n", "no | \n", "
4520 | \n", "44 | \n", "entrepreneur | \n", "single | \n", "tertiary | \n", "no | \n", "1136 | \n", "yes | \n", "yes | \n", "cellular | \n", "3 | \n", "apr | \n", "345 | \n", "2 | \n", "249 | \n", "7 | \n", "other | \n", "no | \n", "