diff --git a/01_the_machine_learning_landscape.ipynb b/01_the_machine_learning_landscape.ipynb index 4036704..ffae1d4 100644 --- a/01_the_machine_learning_landscape.ipynb +++ b/01_the_machine_learning_landscape.ipynb @@ -1,5 +1,30 @@ { "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "CPython 3.5.5\n", + "IPython 6.2.1\n", + "\n", + "numpy 1.14.1\n", + "scipy 1.0.0\n", + "sklearn 0.19.1\n", + "pandas 0.22.0\n", + "matplotlib 2.2.0\n" + ] + } + ], + "source": [ + "%load_ext watermark\n", + "%watermark -v -p numpy,scipy,sklearn,pandas,matplotlib" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -25,7 +50,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 2, "metadata": { "slideshow": { "slide_type": "-" @@ -86,7 +111,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 3, "metadata": {}, "outputs": [], "source": [ @@ -112,7 +137,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ @@ -122,7 +147,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 5, "metadata": {}, "outputs": [ { @@ -179,7 +204,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 6, "metadata": {}, "outputs": [ { @@ -224,7 +249,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 7, "metadata": {}, "outputs": [ { @@ -398,7 +423,7 @@ "[2 rows x 24 columns]" ] }, - "execution_count": 6, + "execution_count": 7, "metadata": {}, "output_type": "execute_result" } @@ -412,7 +437,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 8, "metadata": {}, "outputs": [ { @@ -427,7 +452,7 @@ "Name: Life satisfaction, dtype: float64" ] }, - "execution_count": 7, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } @@ -452,7 +477,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 9, "metadata": {}, "outputs": [ { @@ -533,7 +558,7 @@ "Albania 3995.383 2010.0 " ] }, - "execution_count": 8, + "execution_count": 9, "metadata": {}, "output_type": "execute_result" } @@ -548,7 +573,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 10, "metadata": {}, "outputs": [ { @@ -1922,7 +1947,7 @@ "[36 rows x 30 columns]" ] }, - "execution_count": 9, + "execution_count": 10, "metadata": {}, "output_type": "execute_result" } @@ -1935,7 +1960,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 11, "metadata": {}, "outputs": [ { @@ -1946,7 +1971,7 @@ "Name: United States, dtype: float64" ] }, - "execution_count": 10, + "execution_count": 11, "metadata": {}, "output_type": "execute_result" } @@ -1957,7 +1982,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 12, "metadata": {}, "outputs": [], "source": [ @@ -1970,7 +1995,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 13, "metadata": {}, "outputs": [ { @@ -2007,7 +2032,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 14, "metadata": {}, "outputs": [], "source": [ @@ -2016,7 +2041,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 15, "metadata": {}, "outputs": [ { @@ -2051,16 +2076,6 @@ " \n", " \n", " \n", - " France\n", - " 37675.006\n", - " 6.5\n", - " \n", - " \n", - " United States\n", - " 55805.204\n", - " 7.2\n", - " \n", - " \n", " Hungary\n", " 12239.894\n", " 4.9\n", @@ -2071,10 +2086,20 @@ " 5.8\n", " \n", " \n", + " France\n", + " 37675.006\n", + " 6.5\n", + " \n", + " \n", " Australia\n", " 50961.865\n", " 7.3\n", " \n", + " \n", + " United States\n", + " 55805.204\n", + " 7.2\n", + " \n", " \n", "\n", "" @@ -2082,14 +2107,14 @@ "text/plain": [ " GDP per capita Life satisfaction\n", "Country \n", - "France 37675.006 6.5\n", - "United States 55805.204 7.2\n", "Hungary 12239.894 4.9\n", "Korea 27195.197 5.8\n", - "Australia 50961.865 7.3" + "France 37675.006 6.5\n", + "Australia 50961.865 7.3\n", + "United States 55805.204 7.2" ] }, - "execution_count": 14, + "execution_count": 15, "metadata": {}, "output_type": "execute_result" } @@ -2100,7 +2125,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 16, "metadata": {}, "outputs": [ { @@ -2136,7 +2161,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 17, "metadata": {}, "outputs": [ { @@ -2145,7 +2170,7 @@ "(4.853052800266436, 4.911544589158483e-05)" ] }, - "execution_count": 16, + "execution_count": 17, "metadata": {}, "output_type": "execute_result" } @@ -2162,7 +2187,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 18, "metadata": {}, "outputs": [ { @@ -2190,7 +2215,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": 19, "metadata": {}, "outputs": [ { @@ -2206,7 +2231,7 @@ "5.96244744318815" ] }, - "execution_count": 18, + "execution_count": 19, "metadata": {}, "output_type": "execute_result" } @@ -2220,7 +2245,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": 20, "metadata": {}, "outputs": [ { @@ -2251,7 +2276,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": 21, "metadata": {}, "outputs": [ { @@ -2312,7 +2337,7 @@ "Spain 25864.721 6.5" ] }, - "execution_count": 20, + "execution_count": 21, "metadata": {}, "output_type": "execute_result" } @@ -2323,7 +2348,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 22, "metadata": {}, "outputs": [ { @@ -2332,7 +2357,7 @@ "5.766666666666667" ] }, - "execution_count": 21, + "execution_count": 22, "metadata": {}, "output_type": "execute_result" } @@ -2343,7 +2368,7 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": 23, "metadata": {}, "outputs": [ { @@ -2428,7 +2453,7 @@ "Luxembourg 101994.093 6.9" ] }, - "execution_count": 22, + "execution_count": 23, "metadata": {}, "output_type": "execute_result" } @@ -2439,7 +2464,7 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": 24, "metadata": {}, "outputs": [], "source": [ @@ -2456,7 +2481,7 @@ }, { "cell_type": "code", - "execution_count": 24, + "execution_count": 25, "metadata": {}, "outputs": [ { @@ -2498,7 +2523,7 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": 26, "metadata": { "scrolled": true }, @@ -2546,7 +2571,7 @@ }, { "cell_type": "code", - "execution_count": 26, + "execution_count": 27, "metadata": {}, "outputs": [ { @@ -2560,7 +2585,7 @@ "Name: Life satisfaction, dtype: float64" ] }, - "execution_count": 26, + "execution_count": 27, "metadata": {}, "output_type": "execute_result" } @@ -2571,7 +2596,7 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": 28, "metadata": {}, "outputs": [ { @@ -2688,7 +2713,7 @@ "Norway 74822.106 2015.0 " ] }, - "execution_count": 27, + "execution_count": 28, "metadata": {}, "output_type": "execute_result" } @@ -2699,7 +2724,7 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": 29, "metadata": { "scrolled": true }, diff --git a/images/end_to_end_project/attribute_histogram_plots.png b/images/end_to_end_project/attribute_histogram_plots.png index 6e6b62a..7aad7c1 100644 Binary files a/images/end_to_end_project/attribute_histogram_plots.png and b/images/end_to_end_project/attribute_histogram_plots.png differ diff --git a/images/end_to_end_project/bad_visualization_plot.png b/images/end_to_end_project/bad_visualization_plot.png index a97af15..b2f614f 100644 Binary files a/images/end_to_end_project/bad_visualization_plot.png and b/images/end_to_end_project/bad_visualization_plot.png differ diff --git a/images/end_to_end_project/better_visualization_plot.png b/images/end_to_end_project/better_visualization_plot.png index 119d8e0..c6da38c 100644 Binary files a/images/end_to_end_project/better_visualization_plot.png and b/images/end_to_end_project/better_visualization_plot.png differ diff --git a/images/end_to_end_project/california_housing_prices_plot.png b/images/end_to_end_project/california_housing_prices_plot.png index 0468996..2768f7e 100644 Binary files a/images/end_to_end_project/california_housing_prices_plot.png and b/images/end_to_end_project/california_housing_prices_plot.png differ diff --git a/images/end_to_end_project/housing_prices_scatterplot.png b/images/end_to_end_project/housing_prices_scatterplot.png index f6a5462..5c103b2 100644 Binary files a/images/end_to_end_project/housing_prices_scatterplot.png and b/images/end_to_end_project/housing_prices_scatterplot.png differ diff --git a/images/end_to_end_project/income_vs_house_value_scatterplot.png b/images/end_to_end_project/income_vs_house_value_scatterplot.png index 969924b..03aa207 100644 Binary files a/images/end_to_end_project/income_vs_house_value_scatterplot.png and b/images/end_to_end_project/income_vs_house_value_scatterplot.png differ diff --git a/images/end_to_end_project/scatter_matrix_plot.png b/images/end_to_end_project/scatter_matrix_plot.png index 3332840..77e3de1 100644 Binary files a/images/end_to_end_project/scatter_matrix_plot.png and b/images/end_to_end_project/scatter_matrix_plot.png differ