uczenie-maszynowe/wyk/05_Metody_ewaluacji.ipynb
2022-11-24 07:22:33 +01:00

1306 lines
106 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### Uczenie maszynowe\n",
"# 5. Metody ewaluacji"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## 5.1. Metodologia testowania"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"source": [
"W uczeniu maszynowym bardzo ważna jest ewaluacja budowanego modelu. Dlatego dobrze jest podzielić posiadane dane na odrębne zbiory osobny zbiór danych do uczenia i osobny do testowania. W niektórych przypadkach potrzeba będzie dodatkowo wyodrębnić tzw. zbiór walidacyjny."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### Zbiór uczący a zbiór testowy"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
"* Na zbiorze uczącym (treningowym) uczymy algorytmy, a na zbiorze testowym sprawdzamy ich poprawność.\n",
"* Zbiór uczący powinien być kilkukrotnie większy od testowego (np. 4:1, 9:1 itp.).\n",
"* Zbiór testowy często jest nieznany.\n",
"* Należy unikać mieszania danych testowych i treningowych nie wolno „zanieczyszczać” danych treningowych danymi testowymi!"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"Czasami potrzebujemy dobrać (hiper-)parametry modelu, np. $\\alpha$ który zbiór wykorzystać do tego celu?"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### Zbiór walidacyjny"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
"Do doboru parametrów najlepiej użyć jeszcze innego zbioru jest to tzw. **zbiór walidacyjny**"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
" * Zbiór walidacyjny powinien mieć wielkość zbliżoną do wielkości zbioru testowego, czyli np. dane można podzielić na te trzy zbiory w proporcjach 3:1:1, 8:1:1 itp."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### Walidacja krzyżowa"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
"Którą część danych wydzielić jako zbiór walidacyjny tak, żeby było „najlepiej”?"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
" * Niech każda partia danych pełni tę rolę naprzemiennie!"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"<img width=\"100%\" src=\"https://chrisjmccormick.files.wordpress.com/2013/07/10_fold_cv.png\"/>\n",
"Żródło: https://chrisjmccormick.wordpress.com/2013/07/31/k-fold-cross-validation-with-matlab-code/"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### Walidacja krzyżowa\n",
"\n",
"* Podziel dane $D = \\left\\{ (x^{(1)}, y^{(1)}), \\ldots, (x^{(m)}, y^{(m)})\\right\\} $ na $N$ rozłącznych zbiorów $T_1,\\ldots,T_N$\n",
"* Dla $i=1,\\ldots,N$, wykonaj:\n",
" * Użyj $T_i$ do walidacji i zbiór $S_i$ do trenowania, gdzie $S_i = D \\smallsetminus T_i$. \n",
" * Zapisz model $\\theta_i$.\n",
"* Akumuluj wyniki dla modeli $\\theta_i$ dla zbiorów $T_i$.\n",
"* Ustalaj parametry uczenia na akumulowanych wynikach."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### Walidacja krzyżowa wskazówki\n",
"\n",
"* Zazwyczaj ustala się $N$ w przedziale od $4$ do $10$, tzw. $N$-krotna walidacja krzyżowa (*$N$-fold cross validation*). \n",
"* Zbiór $D$ warto zrandomizować przed podziałem.\n",
"* W jaki sposób akumulować wyniki dla wszystkich zbiórow $T_i$?\n",
"* Po ustaleniu parametrów dla każdego $T_i$, trenujemy model na całych danych treningowych z ustalonymi parametrami.\n",
"* Testujemy na zbiorze testowym (jeśli nim dysponujemy)."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### _Leave-one-out_\n",
"\n",
"Jest to szczególny przypadek walidacji krzyżowej, w której $N = m$."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
"* Jaki jest rozmiar pojedynczego zbioru $T_i$?\n",
"* Jakie są zalety i wady tej metody?\n",
"* Kiedy może być przydatna?"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"source": [
"Metoda *leave-one-out* może się przydać w dwóch przypadkach:\n",
" * kiedy zbiór danych jest mały\n",
" * kiedy dokładność ewaluacji jest dla nas ważniejsza niż szybkość"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### Zbiór walidujący a algorytmy optymalizacji\n",
"\n",
"* Gdy błąd rośnie na zbiorze uczącym, mamy źle dobrany parametr $\\alpha$. Należy go wtedy zmniejszyć.\n",
"* Gdy błąd zmniejsza się na zbiorze trenującym, ale rośnie na zbiorze walidującym, mamy do czynienia ze zjawiskiem **nadmiernego dopasowania** (*overfitting*).\n",
"* Należy wtedy przerwać optymalizację. Automatyzacja tego procesu to _early stopping_."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## 5.2. Miary jakości"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"source": [
"Aby przeprowadzić ewaluację modelu, musimy wybrać **miarę** (**metrykę**), jakiej będziemy używać.\n",
"\n",
"Jakiej miary użyc najlepiej?\n",
" * To zależy od rodzaju zadania.\n",
" * Innych metryk używa się do regresji, a innych do klasyfikacji"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### Metryki dla zadań regresji\n",
"\n",
"Dla zadań regresji możemy zastosować np.:\n",
" * błąd średniokwadratowy (*root-mean-square error*, RMSE):\n",
" $$ \\mathrm{RMSE} \\, = \\, \\sqrt{ \\frac{1}{m} \\sum_{i=1}^{m} \\left( \\hat{y}^{(i)} - y^{(i)} \\right)^2 } $$\n",
" * średni błąd bezwzględny (*mean absolute error*, MAE):\n",
" $$ \\mathrm{MAE} \\, = \\, \\frac{1}{m} \\sum_{i=1}^{m} \\left| \\hat{y}^{(i)} - y^{(i)} \\right| $$"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"source": [
"W powyższych wzorach $y^{(i)}$ oznacza **oczekiwaną** wartości zmiennej $y$ w $i$-tym przykładzie, a $\\hat{y}^{(i)}$ oznacza wartość zmiennej $y$ w $i$-tym przykładzie wyliczoną (**przewidzianą**) przez nasz model."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### Metryki dla zadań klasyfikacji\n",
"\n",
"Aby przedstawić kilka najpopularniejszych metryk stosowanych dla zadań klasyfikacyjnych, posłużmy się następującym przykładem:"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"outputs": [],
"source": [
"# Przydatne importy\n",
"\n",
"import ipywidgets as widgets\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pandas\n",
"import random\n",
"import seaborn\n",
"\n",
"%matplotlib inline"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"outputs": [],
"source": [
"def powerme(x1,x2,n):\n",
" \"\"\"Funkcja, która generuje n potęg dla zmiennych x1 i x2 oraz ich iloczynów\"\"\"\n",
" X = []\n",
" for m in range(n+1):\n",
" for i in range(m+1):\n",
" X.append(np.multiply(np.power(x1,i),np.power(x2,(m-i))))\n",
" return np.hstack(X)"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"outputs": [],
"source": [
"def plot_data_for_classification(X, Y, xlabel=None, ylabel=None, Y_predicted=[], highlight=None):\n",
" \"\"\"Wykres danych dla zadania klasyfikacji\"\"\"\n",
" fig = plt.figure(figsize=(16*.6, 9*.6))\n",
" ax = fig.add_subplot(111)\n",
" fig.subplots_adjust(left=0.1, right=0.9, bottom=0.1, top=0.9)\n",
" X = X.tolist()\n",
" Y = Y.tolist()\n",
" X1n = [x[1] for x, y in zip(X, Y) if y[0] == 0]\n",
" X1p = [x[1] for x, y in zip(X, Y) if y[0] == 1]\n",
" X2n = [x[2] for x, y in zip(X, Y) if y[0] == 0]\n",
" X2p = [x[2] for x, y in zip(X, Y) if y[0] == 1]\n",
" \n",
" if len(Y_predicted) > 0:\n",
" Y_predicted = Y_predicted.tolist()\n",
" X1tn = [x[1] for x, y, yp in zip(X, Y, Y_predicted) if y[0] == 0 and yp[0] == 0]\n",
" X1fn = [x[1] for x, y, yp in zip(X, Y, Y_predicted) if y[0] == 1 and yp[0] == 0]\n",
" X1tp = [x[1] for x, y, yp in zip(X, Y, Y_predicted) if y[0] == 1 and yp[0] == 1]\n",
" X1fp = [x[1] for x, y, yp in zip(X, Y, Y_predicted) if y[0] == 0 and yp[0] == 1]\n",
" X2tn = [x[2] for x, y, yp in zip(X, Y, Y_predicted) if y[0] == 0 and yp[0] == 0]\n",
" X2fn = [x[2] for x, y, yp in zip(X, Y, Y_predicted) if y[0] == 1 and yp[0] == 0]\n",
" X2tp = [x[2] for x, y, yp in zip(X, Y, Y_predicted) if y[0] == 1 and yp[0] == 1]\n",
" X2fp = [x[2] for x, y, yp in zip(X, Y, Y_predicted) if y[0] == 0 and yp[0] == 1]\n",
" \n",
" if highlight == 'tn':\n",
" ax.scatter(X1tn, X2tn, c='red', marker='x', s=100, label='Dane')\n",
" ax.scatter(X1fn, X2fn, c='gray', marker='o', s=50, label='Dane')\n",
" ax.scatter(X1tp, X2tp, c='gray', marker='o', s=50, label='Dane')\n",
" ax.scatter(X1fp, X2fp, c='gray', marker='x', s=50, label='Dane')\n",
" elif highlight == 'fn':\n",
" ax.scatter(X1tn, X2tn, c='gray', marker='x', s=50, label='Dane')\n",
" ax.scatter(X1fn, X2fn, c='green', marker='o', s=100, label='Dane')\n",
" ax.scatter(X1tp, X2tp, c='gray', marker='o', s=50, label='Dane')\n",
" ax.scatter(X1fp, X2fp, c='gray', marker='x', s=50, label='Dane')\n",
" elif highlight == 'tp':\n",
" ax.scatter(X1tn, X2tn, c='gray', marker='x', s=50, label='Dane')\n",
" ax.scatter(X1fn, X2fn, c='gray', marker='o', s=50, label='Dane')\n",
" ax.scatter(X1tp, X2tp, c='green', marker='o', s=100, label='Dane')\n",
" ax.scatter(X1fp, X2fp, c='gray', marker='x', s=50, label='Dane')\n",
" elif highlight == 'fp':\n",
" ax.scatter(X1tn, X2tn, c='gray', marker='x', s=50, label='Dane')\n",
" ax.scatter(X1fn, X2fn, c='gray', marker='o', s=50, label='Dane')\n",
" ax.scatter(X1tp, X2tp, c='gray', marker='o', s=50, label='Dane')\n",
" ax.scatter(X1fp, X2fp, c='red', marker='x', s=100, label='Dane')\n",
" else:\n",
" ax.scatter(X1tn, X2tn, c='red', marker='x', s=50, label='Dane')\n",
" ax.scatter(X1fn, X2fn, c='green', marker='o', s=50, label='Dane')\n",
" ax.scatter(X1tp, X2tp, c='green', marker='o', s=50, label='Dane')\n",
" ax.scatter(X1fp, X2fp, c='red', marker='x', s=50, label='Dane')\n",
"\n",
" else:\n",
" ax.scatter(X1n, X2n, c='r', marker='x', s=50, label='Dane')\n",
" ax.scatter(X1p, X2p, c='g', marker='o', s=50, label='Dane')\n",
" \n",
" if xlabel:\n",
" ax.set_xlabel(xlabel)\n",
" if ylabel:\n",
" ax.set_ylabel(ylabel)\n",
" \n",
" ax.margins(.05, .05)\n",
" return fig"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"outputs": [],
"source": [
"# Wczytanie danych\n",
"import pandas\n",
"import numpy as np\n",
"\n",
"alldata = pandas.read_csv('data-metrics.tsv', sep='\\t')\n",
"data = np.matrix(alldata)\n",
"\n",
"m, n_plus_1 = data.shape\n",
"n = n_plus_1 - 1\n",
"\n",
"X2 = powerme(data[:, 1], data[:, 2], n)\n",
"Y2 = np.matrix(data[:, 0]).reshape(m, 1)"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA18AAAHvCAYAAACrE2U1AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjYuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8o6BhiAAAACXBIWXMAAA9hAAAPYQGoP6dpAABZ3ElEQVR4nO3dfXxU1b3v8e9MwoQgToALJFAHlWpAahQFiSGInMMcQekxgqcN1gblUrwo2io+QY+GY7QHqxa9WhD1AGqqJeIVER9SDTYVQgQEqahARNCMSqJCyQDGTJLZ949pRiaZPJLZ8/R5v17zQvZes7NmuzPMd9Zev2UxDMMQAAAAACCkrOHuAAAAAADEA8IXAAAAAJiA8AUAAAAAJiB8AQAAAIAJCF8AAAAAYALCFwAAAACYgPAFAAAAACZIDHcHYoHX69VXX32lk08+WRaLJdzdAQAAABBChmHoyJEjGjx4sKzWjo9nEb66wVdffSWHwxHubgAAAAAwkcvl0im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xWWEjwAgAA6KCoCl/ffvutGhsblZqaGrA9NTVVVVVVHTrGnXfeqcGDBwcEuMmTJ+vZZ5/V+vXr9fvf/15/+9vfdOmll6qxsTHoMRYtWqSUlBT/w8GHT8QDl0vKywvclpfXehVEAAAABIiq8HWi7r//fq1atUpr1qxRz549/dunT5+uyy+/XBkZGbriiiv06quvauvWrSotLQ16nAULFqimpsb/cPHhE7GueXGNsrLgRTgAAADQqqgKX/3791dCQoKqq6sDtldXVystLa3N5z700EO6//779eabb+qcc85ps+3QoUPVv39/7d27N+j+pKQk2e32gAcQs5oHr9JSaezYlkU4CGAAAABtiqrwZbPZNGrUKK1fv96/zev1av369crKymr1eQ888IDuvfdeFRcXa/To0e3+nC+++EIHDx7UoEGDuqXf6GbtrSXFWlPdx+ORnM7gVQ2bV0F0Ojn3AAAAbYiq8CVJ8+bN01NPPaVnnnlGu3bt0vXXX69jx45p5syZkqQZM2ZowYIF/va///3vdffdd2vFihU67bTTVFVVpaqqKh09elSSdPToUd1+++1699139dlnn2n9+vXKycnRGWecoUmTJoXlNaINRUVSRkbroywul29/UZG5/YpVNptUUCClpwevatgUwNLTfe1Y5wsAAHSnGPvSPerCV25urh566CHl5+dr5MiR2rFjh4qLi/1FOCorK3XgwAF/+8cff1wej0f/8R//oUGDBvkfDz30kCQpISFBH3zwgS6//HKlp6dr1qxZGjVqlDZs2KCkpKSwvEa0wuOR8vOliorgt7k13R5XUeFrF2W/jBErN1faubP1qoYOh29/bq65/QIAALEtBr90j7p1viIR63yZKNj8I4ej9e0AAACIPh6PL1hVVAT/bHf8Z7/0dN8XwSbegRMX63wBLeYZTZggbdpE8AIAAIglNptUUhK8uFfzL91LSqJm6gPhC9GneQDLziZ4ATBVbX2tqo9Wq7a+NtxdAYDYFYNfuhO+EJ0cDqmwMHBbYWFU/fIBiD4bKzdqWtE09V7UW2l/SFPvRb01rWiayirLwt01AIhNMfalO+EL0cnlkvLyArfl5bHWFICQeXzr4xq/crzWVayT1/BKkryGV+sq1um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bHHHtNll12mhx56SIMHD27xnISEBKWlpQVsW7NmjX7+85/7g1eTPn36tGgLAAAARBSbTSoo8C2gXFLSsrhGUxVEp9PXjuAVUaLmtsPy8nL16dPHH7wkyel0ymq1avPmzR06xrZt27Rjxw7NmjWrxb65c+eqf//+GjNmjFasWKG2BgTr6urkdrsDHgAAAIApcnN9I1qtVTV0OHz7c3PN7RfaFTUjX1VVVRo4cGDAtsTERPXr109VVVUdOsby5ct11llnaezYsQHbCwoK9K//+q/q1auX3nzzTd1www06evSofv3rXwc9zqJFi3TPPfd07YUA6ByPp+1v7drbDwBNeD9BLGnvWuVajkhhH/maP39+q0Uxmh67d+8+4Z9TW1ur559/Puio1913363s7Gydd955uvPOO3XHHXfowQcfbPVYCxYsUE1Njf/hYjIjEBpFRb772lv7HXO5fPuLisztF4Dow/sJgAgQ9oIb33zzjQ4ePNhmm6FDh+pPf/qTbr31Vv3jH//wb29oaFDPnj21evVqTZ06tc1jFBYWatasWfryyy81YMCANtu+9tpr+ulPf6rvv/9eSUlJ7b4GCm4AIcCEYgDdwePx/dna+4nHI1VX834CoFOituDGgAED2g1DkpSVlaXDhw9r27ZtGjVqlCTp7bffltfrVWZmZrvPX758uS6//PIO/awdO3aob9++HQpeAELEZvNNJG76QDRhwg8fmJqX2C0p4YMSgJaKin4oShDs/UTy/ffRo9LXX/N+AiDkwn7bYUedddZZmjx5smbPnq0tW7aorKxMN954o6ZPn+6vdPjll19q+PDh2rJlS8Bz9+7dq3feeUe/+tWvWhx33bp1+p//+R99+OGH2rt3rx5//HH993//t2666SZTXheANjRVbDp+zZJNm1qubdLahGMA8cvj8QWvigrfe4YU+H4ybpx04YW+//76a+n003k/ARByURO+JOm5557T8OHDNXHiRF122WUaN26cnnzySf/++vp67dmzR999913A81asWKFTTjlFl1xySYtj9ujRQ0uWLFFWVpZGjhypJ554QosXL9bChQtD/noAdEDzAJadTfAC0L6m0fPjv7yRfO8bQ4ZIlZXSV1/5tg0ZIv3tb7yfAAi5sM/5ig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9evTRw4EDdfvvtamhoCOVLiXidPdeHDh3STTfdpGHDhik5OVlDhgzRr3/9a9XU1AS047qWlixZotNOO009e/ZUZmamtmzZ0mb71atXa/jw4erZs6cyMjL0+uuvB+zvyPt3vOrMuX7qqad00UUXqW/fvurbt6+cTmeL9tdee22L63fy5MmhfhlRoTPn+umnn25xHnv27BnQhuu6dZ0518H+DbRYLJoyZYq/Ddd1cO+8847+/d//XYMHD5bFYtHLL7/c7nNKS0t1/vnnKykpSWeccYaefvrpFm06+29AUAYiSn5+vrF48WJj3rx5RkpKSoeec//99xspKSnGyy+/bPz97383Lr/8cuP00083amtr/W0mT55snHvuuca7775rbNiwwTjjjDOMq666KkSvInp09rw0NDQYBw4cCHjcc889Ru/evY0jR47420kyVq5cGdDu+P8f8agr1+DFF19szJ49O+A81tTU+Pc3NDQYZ599tuF0Oo3333/feP31143+/fsbCxYsCPXLiWidPdc7d+40pk2bZrzyyivG3r17jfXr1xtnnnmmceWVVwa0i/fretWqVYbNZjNWrFhhfPTRR8bs2bONPn36GNXV1UHbl5WVGQkJCcYDDzxgfPzxx8Zdd91l9OjRw9i5c6e/TUfev+NRZ8/1L37xC2PJkiXG+++/b+zatcu49tprjZSUFOOLL77wt7nmmmuMyZMnB1y/hw4dMuslRazOnuuVK1cadrs94DxWVVUFtOG6Dq6z5/rgwYMB5/nDDz80EhISjJUrV/rbcF0H9/rrrxv/+Z//abz00kuGJGPNmjVttt+3b5/Rq1cvY968ecbHH39sPPbYY0ZCQoJRXFzsb9PZ/3+tIXxFqJUrV3YofHm9XiMtLc148MEH/dsOHz5sJCUlGX/+858NwzCMjz/+2JBkbN261d/mjTfeMCwWi/Hll192e9+jRXedl5EjRxr/+3//74BtHflFjyddPdcXX3yx8Zvf/KbV/a+//rphtVoD/uF//PHHDbvdbtTV1XVL36NNd13XL7zwgmGz2Yz6+nr/tni/rseMGWPMnTvX//fGxkZj8ODBxqJFi4K2//nPf25MmTIlYFtmZqbxf/7P/zEMo2Pv3/Gqs+e6uYaGBuPkk082nnnmGf+2a665xsjJyenurka9zp7r9j6fcF237kSv64cfftg4+eSTjaNHj/q3cV23ryP/dt1xxx3GT37yk4Btubm5xqRJk/x/P9H/f0247TDK7d+/X1VVVXI6nf5tKSkpyszMVHl5uSSpvLxcffr00ejRo/1tnE6nrFarNm/ebHqfI0V3nJdt27Zpx44dmjVrVot9c+fOVf/+/TVmzBitWLFCRhyvZ34i5/q5555T//79dfbZZ2vBggX67rvvAo6bkZGh1NRU/7ZJkybJ7Xbro48+6v4XEgW66/e9pqZGdrtdiYmJAdvj9br2eDzatm1bwHut1WqV0+n0v9c2V15eHtBe8l2fTe078v4dj7pyrpv77rvvVF9fr379+gVsLy0t1cCBAzVs2DBdf/31OnjwYLf2Pdp09VwfPXpUp556qhwOh3JycgLeb7mug+uO63r58uWaPn26TjrppIDtXNcnrr336+74/9cksf0miGRVVVWSFPDhs+nvTfuqqqo0cODAgP2JiYnq16+fv0086o7zsnz5cp111lkaO3ZswPaCggL967/+q3r16qU333xTN9xwg44ePapf//rX3db/aNLVc/2LX/xCp556qgYPHqwPPvhAd955p/bs2aOXXnrJf9xg137TvnjUHdf1t99+q3vvvVfXXXddwPZ4vq6//fZbNTY2Br3edu/eHfQ5rV2fx783N21rrU086sq5bu7OO+/U4MGDAz4oTZ48WdOmTdPpp5+uTz/9VL/97W916aWXqry8XAkJCd36GqJFV871sGHDtGLFCp1zzjmqqanRQw89pLFjx+qjjz7SKaecwnXdihO9rrds2aIPP/xQy5cvD9jOdd09Wnu/drvdqq2t1T/+8Y8Tfl9qQvgywfz58/X73/++zTa7du3S8OHDTepRbOvo+T5RtbW1ev7553X33Xe32Hf8tvPOO0/Hjh3Tgw8+GHMfUkN9ro//8J+RkaFBgwZp4sSJ+vTTT/XjH/+4y8eNRmZd1263W1OmTNGIESP0X//1XwH74uW6RnS7//77tWrVKpWWlgYUgpg+fbr/vzMyMnTOOefoxz/+sUpLSzVx4sRwdDUqZWVlKSsry//3sWPH6qyzztITTzyhe++9N4w9i23Lly9XRkaGxowZE7Cd6zr6EL5McOutt+raa69ts83QoUO7dOy0tDRJUnV1tQYNGuTfXl1drZEjR/rbfP311wHPa2ho0KFDh/zPjyUdPd8nel5efPFFfffdd5oxY0a7bTMzM3Xvvfeqrq5OSUlJ7baPFmad6yaZmZmSpL179+rHP/6x0tLSWlQaqq6ulqSYu7bNONdHjhzR5MmTdfLJJ2vNmjXq0aNHm+1j9boOpn///kpISPBfX02qq6tbPa9paWlttu/I+3c86sq5bvLQQw/p/vvvV0lJic4555w22w4dOlT9+/fX3r174/ZD6omc6yY9evTQeeedp71790rium7NiZzrY8eOadWqVSooKGj353Bdd01r79d2u13JyclKSEg44d+VJsz5MsGAAQM0fPjwNh82m61Lxz799NOVlpam9evX+7e53W5t3rzZ/81UVlaWDh8+rG3btvnbvP322/J6vf4Ps7Gko+f7RM/L8uXLdfnll2vAgAHttt2xY4f69u0bcx9QzTrXTXbs2CFJ/n/Qs7KytHPnzoCw8dZbb8lut2vEiBHd8yIjRKjPtdvt1iWXXCKbzaZXXnmlRenoYGL1ug7GZrNp1KhRAe+1Xq9X69evDxgFOF5WVlZAe8l3fTa178j7dzzqyrmWpAceeED33nuviouLA+Y8tuaLL77QwYMHAwJCvOnquT5eY2Ojdu7c6T+PXNfBnci5Xr16terq6vTLX/6y3Z/Ddd017b1fd8fvil+nynMg5D7//HPj/fff95cvf//99433338/oIz5sGHDjJdeesn/9/vvv9/o06ePsXbtWuODDz4wcnJygpaaP++884zNmzcbGzduNM4880xKzRvtn5cvvvjCGDZsmLF58+aA533yySeGxWIx3njjjRbHfOWVV4ynnnrK2Llzp/HJJ58YS5cuNXr16mXk5+eH/PVEss6e67179xoFBQXGe++9Z+zfv99Yu3atMXToUGP8+PH+5zSVmr/kkkuMHTt2GMXFxcaAAQMoNd/Jc11TU2NkZmYaGRkZxt69ewNKFjc0NBiGwXVtGL4yw0lJScbTTz9tfPzxx8Z1111n9OnTx19tMy8vz5g/f76/fVlZmZGYmGg89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Ex5wsAgA4qLi7W7t271djYqNTU1IB9EyZM0MknnxymngEAogHhCwCADti+fbt+/vOfa/ny5Zo4caLuvvvucHcJABBlmPMFAEA7PvvsM02ZMkW//e1vddVVV2no0KHKysrS9u3bdf7554e7ewCAKMHIFwAAbTh06JAmT56snJwczZ8/X5KUmZmpSy+9VL/97W/D3DsAQDRh5AsAgDb069dPu3fvbrH9tddeC0NvAADRjGqHAAB0A6fTqb///e86duyY+vXrp9WrVysrKyvc3QIARBDCFwAAAACYgDlfAAAAAGACwhcAAAAAmIDwBQAAAAAmIHwBAAAAgAkIXwAAAABgAsIXAAAAAJiA8AUAAAAAJiB8AQAAAIAJCF8AAAAAYALCFwAAAACYgPAFAAAAACb4/xm/7/XuDz1BAAAAAElFTkSuQmCC\n",
"text/plain": [
"<Figure size 960x540 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plot_data_for_classification(X2, Y2, xlabel=r'$x_1$', ylabel=r'$x_2$')"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"outputs": [],
"source": [
"def safeSigmoid(x, eps=0):\n",
" \"\"\"Funkcja sigmoidalna zmodyfikowana w taki sposób, \n",
" żeby wartości zawsze były odległe od asymptot o co najmniej eps\n",
" \"\"\"\n",
" y = 1.0/(1.0 + np.exp(-x))\n",
" if eps > 0:\n",
" y[y < eps] = eps\n",
" y[y > 1 - eps] = 1 - eps\n",
" return y\n",
"\n",
"def h(theta, X, eps=0.0):\n",
" \"\"\"Funkcja hipotezy (regresja logistyczna)\"\"\"\n",
" return safeSigmoid(X*theta, eps)\n",
"\n",
"def J(h,theta,X,y, lamb=0):\n",
" \"\"\"Funkcja kosztu dla regresji logistycznej\"\"\"\n",
" m = len(y)\n",
" f = h(theta, X, eps=10**-7)\n",
" j = -np.sum(np.multiply(y, np.log(f)) + \n",
" np.multiply(1 - y, np.log(1 - f)), axis=0)/m\n",
" if lamb > 0:\n",
" j += lamb/(2*m) * np.sum(np.power(theta[1:],2))\n",
" return j\n",
"\n",
"def dJ(h,theta,X,y,lamb=0):\n",
" \"\"\"Gradient funkcji kosztu\"\"\"\n",
" g = 1.0/y.shape[0]*(X.T*(h(theta,X)-y))\n",
" if lamb > 0:\n",
" g[1:] += lamb/float(y.shape[0]) * theta[1:] \n",
" return g\n",
"\n",
"def classifyBi(theta, X):\n",
" \"\"\"Funkcja predykcji - klasyfikacja dwuklasowa\"\"\"\n",
" prob = h(theta, X)\n",
" return prob"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"outputs": [],
"source": [
"def GD(h, fJ, fdJ, theta, X, y, alpha=0.01, eps=10**-3, maxSteps=10000):\n",
" \"\"\"Metoda gradientu prostego dla regresji logistycznej\"\"\"\n",
" errorCurr = fJ(h, theta, X, y)\n",
" errors = [[errorCurr, theta]]\n",
" while True:\n",
" # oblicz nowe theta\n",
" theta = theta - alpha * fdJ(h, theta, X, y)\n",
" # raportuj poziom błędu\n",
" errorCurr, errorPrev = fJ(h, theta, X, y), errorCurr\n",
" # kryteria stopu\n",
" if abs(errorPrev - errorCurr) <= eps:\n",
" break\n",
" if len(errors) > maxSteps:\n",
" break\n",
" errors.append([errorCurr, theta]) \n",
" return theta, errors"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"theta = [[ 1.37136167]\n",
" [ 0.90128948]\n",
" [ 0.54708112]\n",
" [-5.9929264 ]\n",
" [ 2.64435168]\n",
" [-4.27978238]]\n"
]
}
],
"source": [
"# Uruchomienie metody gradientu prostego dla regresji logistycznej\n",
"theta_start = np.matrix(np.zeros(X2.shape[1])).reshape(X2.shape[1],1)\n",
"theta, errors = GD(h, J, dJ, theta_start, X2, Y2, \n",
" alpha=0.1, eps=10**-7, maxSteps=10000)\n",
"print('theta = {}'.format(theta))"
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"outputs": [],
"source": [
"def plot_decision_boundary(fig, theta, X):\n",
" \"\"\"Wykres granicy klas\"\"\"\n",
" ax = fig.axes[0]\n",
" xx, yy = np.meshgrid(np.arange(-1.0, 1.0, 0.02),\n",
" np.arange(-1.0, 1.0, 0.02))\n",
" l = len(xx.ravel())\n",
" C = powerme(xx.reshape(l, 1), yy.reshape(l, 1), n)\n",
" z = classifyBi(theta, C).reshape(int(np.sqrt(l)), int(np.sqrt(l)))\n",
"\n",
" plt.contour(xx, yy, z, levels=[0.5], lw=3);"
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [],
"source": [
"Y_expected = Y2.astype(int)\n",
"Y_predicted = (classifyBi(theta, X2) > 0.5).astype(int)"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"outputs": [],
"source": [
"# Przygotowanie interaktywnego wykresu\n",
"\n",
"dropdown_highlight = widgets.Dropdown(options=['all', 'tp', 'fp', 'tn', 'fn'], value='all', description='highlight')\n",
"\n",
"def interactive_classification(highlight):\n",
" fig = plot_data_for_classification(X2, Y2, xlabel=r'$x_1$', ylabel=r'$x_2$',\n",
" Y_predicted=Y_predicted, highlight=highlight)\n",
" plot_decision_boundary(fig, theta, X2)"
]
},
{
"cell_type": "code",
"execution_count": 21,
"metadata": {
"scrolled": true,
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "99f3351da36340ca8c6d117c625f3ed4",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"interactive(children=(Dropdown(description='highlight', options=('all', 'tp', 'fp', 'tn', 'fn'), value='all'),…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/plain": [
"<function __main__.interactive_classification(highlight)>"
]
},
"execution_count": 21,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"widgets.interact(interactive_classification, highlight=dropdown_highlight)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"Zadanie klasyfikacyjne z powyższego przykładu polega na przypisaniu punktów do jednej z dwóch kategorii:\n",
" 0. <font color=\"red\">czerwone krzyżyki</font>\n",
" 1. <font color=\"green\">zielone kółka</font>\n",
"\n",
"W tym celu zastosowano regresję logistyczną."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"W rezultacie otrzymano model, który dzieli płaszczyznę na dwa obszary:\n",
" 0. <font color=\"red\">na zewnątrz granatowej krzywej</font>\n",
" 1. <font color=\"green\">wewnątrz granatowej krzywej</font>\n",
" \n",
"Model przewiduje klasę <font color=\"red\">0 („czerwoną”)</font> dla punktów znajdujący się w obszarze na zewnątrz krzywej, natomiast klasę <font color=\"green\">1 („zieloną”)</font> dla punktów znajdujących sie w obszarze wewnąrz krzywej."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"Wszysktie obserwacje możemy podzielić zatem na cztery grupy:\n",
" * **true positives (TP)** prawidłowo sklasyfikowane pozytywne przykłady (<font color=\"green\">zielone kółka</font> w <font color=\"green\">wewnętrznym obszarze</font>)\n",
" * **true negatives (TN)** prawidłowo sklasyfikowane negatywne przykłady (<font color=\"red\">czerwone krzyżyki</font> w <font color=\"red\">zewnętrznym obszarze</font>)\n",
" * **false positives (FP)** negatywne przykłady sklasyfikowane jako pozytywne (<font color=\"red\">czerwone krzyżyki</font> w <font color=\"green\">wewnętrznym obszarze</font>)\n",
" * **false negatives (FN)** pozytywne przykłady sklasyfikowane jako negatywne (<font color=\"green\">zielone kółka</font> w <font color=\"red\">zewnętrznym obszarze</font>)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"Innymi słowy:\n",
"\n",
"<img width=\"50%\" src=\"https://blog.aimultiple.com/wp-content/uploads/2019/07/positive-negative-true-false-matrix.png\">"
]
},
{
"cell_type": "code",
"execution_count": 22,
"metadata": {
"slideshow": {
"slide_type": "skip"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"TP = 5\n",
"TN = 35\n",
"FP = 3\n",
"FN = 6\n"
]
}
],
"source": [
"# Obliczmy TP, TN, FP i FN\n",
"\n",
"tp = 0\n",
"tn = 0\n",
"fp = 0\n",
"fn = 0\n",
"\n",
"for i in range(len(Y_expected)):\n",
" if Y_expected[i] == 1 and Y_predicted[i] == 1:\n",
" tp += 1\n",
" elif Y_expected[i] == 0 and Y_predicted[i] == 0:\n",
" tn += 1\n",
" elif Y_expected[i] == 0 and Y_predicted[i] == 1:\n",
" fp += 1\n",
" elif Y_expected[i] == 1 and Y_predicted[i] == 0:\n",
" fn += 1\n",
" \n",
"print('TP =', tp)\n",
"print('TN =', tn)\n",
"print('FP =', fp)\n",
"print('FN =', fn)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "skip"
}
},
"source": [
"Możemy teraz zdefiniować następujące metryki:"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"#### Dokładność (*accuracy*)\n",
"$$ \\mbox{accuracy} = \\frac{\\mbox{przypadki poprawnie sklasyfikowane}}{\\mbox{wszystkie przypadki}} = \\frac{TP + TN}{TP + TN + FP + FN} $$"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"source": [
"Dokładność otrzymujemy przez podzielenie liczby przypadków poprawnie sklasyfikowanych przez liczbę wszystkich przypadków:"
]
},
{
"cell_type": "code",
"execution_count": 23,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Accuracy: 0.8163265306122449\n"
]
}
],
"source": [
"accuracy = (tp + tn) / (tp + tn + fp + fn)\n",
"print('Accuracy:', accuracy)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"source": [
"**Uwaga:** Nie zawsze dokładność będzie dobrą miarą, zwłaszcza gdy klasy są bardzo asymetryczne!\n",
"\n",
"*Przykład:* Wyobraźmy sobie test na koronawirusa, który **zawsze** zwraca wynik negatywny. Jaką przydatność będzie miał taki test w praktyce? Żadną. A jaka będzie jego *dokładność*? Policzmy:\n",
"$$ \\mbox{accuracy} \\, = \\, \\frac{\\mbox{szacowana liczba osób zdrowych na świecie}}{\\mbox{populacja Ziemi}} \\, \\approx \\, \\frac{7\\,700\\,000\\,000 - 600\\,000}{7\\,700\\,000\\,000} \\, \\approx \\, 0.99992 $$\n",
"(zaokrąglone dane z 27 marca 2020)\n",
"\n",
"Powyższy wynik jest tak wysoki, ponieważ zdecydowana większość osób na świecie nie jest zakażona, więc biorąc losowego Ziemianina możemy w ciemno strzelać, że nie ma koronawirusa.\n",
"\n",
"W tym przypadku duża różnica w liczności obu zbiorów (zakażeni/niezakażeni) powoduje, że *accuracy* nie jest dobrą metryką.\n",
"\n",
"Dlatego dysponujemy również innymi metrykami:"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"#### Precyzja (*precision*)\n",
"$$ \\mbox{precision} = \\frac{TP}{TP + FP} $$"
]
},
{
"cell_type": "code",
"execution_count": 24,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Precision: 0.625\n"
]
}
],
"source": [
"precision = tp / (tp + fp)\n",
"print('Precision:', precision)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"source": [
"Precyzja określa, jaka część przykładów sklasyfikowanych jako pozytywne to faktycznie przykłady pozytywne."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"#### Pokrycie (czułość, *recall*)\n",
"$$ \\mbox{recall} = \\frac{TP}{TP + FN} $$"
]
},
{
"cell_type": "code",
"execution_count": 25,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Recall: 0.45454545454545453\n"
]
}
],
"source": [
"recall = tp / (tp + fn)\n",
"print('Recall:', recall)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"source": [
"Pokrycie mówi nam, jaka część przykładów pozytywnych została poprawnie sklasyfikowana."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"#### *$F$-measure* (*$F$-score*)\n",
"$$ F = \\frac{2 \\cdot \\mbox{precision} \\cdot \\mbox{recall}}{\\mbox{precision} + \\mbox{recall}} $$"
]
},
{
"cell_type": "code",
"execution_count": 26,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"F-score: 0.5263157894736842\n"
]
}
],
"source": [
"fscore = (2 * precision * recall) / (precision + recall)\n",
"print('F-score:', fscore)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"source": [
"$F$-_measure_ jest kompromisem między precyzją a pokryciem (a ściślej: jest średnią harmoniczną precyzji i pokrycia)."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"$F$-_measure_ jest szczególnym przypadkiem ogólniejszej miary:"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"*$F_\\beta$-measure*:\n",
"$$ F_\\beta = \\frac{(1 + \\beta) \\cdot \\mbox{precision} \\cdot \\mbox{recall}}{\\beta^2 \\cdot \\mbox{precision} + \\mbox{recall}} $$"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
"Dla $\\beta = 1$ otrzymujemy:\n",
"$$ F_1 \\, = \\, \\frac{(1 + 1) \\cdot \\mbox{precision} \\cdot \\mbox{recall}}{1^2 \\cdot \\mbox{precision} + \\mbox{recall}} \\, = \\, \\frac{2 \\cdot \\mbox{precision} \\cdot \\mbox{recall}}{\\mbox{precision} + \\mbox{recall}} \\, = \\, F $$"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## 5.3. Obserwacje odstające"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"source": [
"**Obserwacje odstające** (*outliers*) to wszelkie obserwacje posiadające nietypową wartość.\n",
"\n",
"Mogą być na przykład rezultatem błędnego pomiaru albo pomyłki przy wprowadzaniu danych do bazy, ale nie tylko.\n",
"\n",
"Obserwacje odstające mogą niekiedy znacząco wpłynąć na parametry modelu, dlatego ważne jest, żeby takie obserwacje odrzucić zanim przystąpi się do tworzenia modelu."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"source": [
"W poniższym przykładzie można zobaczyć wpływ obserwacji odstających na wynik modelowania na przykładzie danych dotyczących cen mieszkań zebranych z ogłoszeń na portalu Gratka.pl: tutaj przykładem obserwacji odstającej może być ogłoszenie, w którym podano cenę w tys. zł zamiast ceny w zł."
]
},
{
"cell_type": "code",
"execution_count": 27,
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"outputs": [],
"source": [
"# Przydatne funkcje\n",
"\n",
"def h_linear(Theta, x):\n",
" \"\"\"Funkcja regresji liniowej\"\"\"\n",
" return x * Theta\n",
"\n",
"def linear_regression(theta):\n",
" \"\"\"Ta funkcja zwraca funkcję regresji liniowej dla danego wektora parametrów theta\"\"\"\n",
" return lambda x: h_linear(theta, x)\n",
"\n",
"def cost(theta, X, y):\n",
" \"\"\"Wersja macierzowa funkcji kosztu\"\"\"\n",
" m = len(y)\n",
" J = 1.0 / (2.0 * m) * ((X * theta - y).T * (X * theta - y))\n",
" return J.item()\n",
"\n",
"def gradient(theta, X, y):\n",
" \"\"\"Wersja macierzowa gradientu funkcji kosztu\"\"\"\n",
" return 1.0 / len(y) * (X.T * (X * theta - y)) \n",
"\n",
"def gradient_descent(fJ, fdJ, theta, X, y, alpha=0.1, eps=10**-5):\n",
" \"\"\"Algorytm gradientu prostego (wersja macierzowa)\"\"\"\n",
" current_cost = fJ(theta, X, y)\n",
" logs = [[current_cost, theta]]\n",
" while True:\n",
" theta = theta - alpha * fdJ(theta, X, y)\n",
" current_cost, prev_cost = fJ(theta, X, y), current_cost\n",
" if abs(prev_cost - current_cost) > 10**15:\n",
" print('Algorithm does not converge!')\n",
" break\n",
" if abs(prev_cost - current_cost) <= eps:\n",
" break\n",
" logs.append([current_cost, theta]) \n",
" return theta, logs\n",
"\n",
"def plot_data(X, y, xlabel, ylabel):\n",
" \"\"\"Wykres danych (wersja macierzowa)\"\"\"\n",
" fig = plt.figure(figsize=(16*.6, 9*.6))\n",
" ax = fig.add_subplot(111)\n",
" fig.subplots_adjust(left=0.1, right=0.9, bottom=0.1, top=0.9)\n",
" ax.scatter([X[:, 1]], [y], c='r', s=50, label='Dane')\n",
" \n",
" ax.set_xlabel(xlabel)\n",
" ax.set_ylabel(ylabel)\n",
" ax.margins(.05, .05)\n",
" plt.ylim(y.min() - 1, y.max() + 1)\n",
" plt.xlim(np.min(X[:, 1]) - 1, np.max(X[:, 1]) + 1)\n",
" return fig\n",
"\n",
"def plot_regression(fig, fun, theta, X):\n",
" \"\"\"Wykres krzywej regresji (wersja macierzowa)\"\"\"\n",
" ax = fig.axes[0]\n",
" x0 = np.min(X[:, 1]) - 1.0\n",
" x1 = np.max(X[:, 1]) + 1.0\n",
" L = [x0, x1]\n",
" LX = np.matrix([1, x0, 1, x1]).reshape(2, 2)\n",
" ax.plot(L, fun(theta, LX), linewidth='2',\n",
" label=(r'$y={theta0:.2}{op}{theta1:.2}x$'.format(\n",
" theta0=float(theta[0][0]),\n",
" theta1=(float(theta[1][0]) if theta[1][0] >= 0 else float(-theta[1][0])),\n",
" op='+' if theta[1][0] >= 0 else '-')))"
]
},
{
"cell_type": "code",
"execution_count": 29,
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"outputs": [],
"source": [
"# Wczytanie danych (mieszkania) przy pomocy biblioteki pandas\n",
"\n",
"alldata = pandas.read_csv('data_flats_with_outliers.tsv', sep='\\t',\n",
" names=['price', 'isNew', 'rooms', 'floor', 'location', 'sqrMetres'])\n",
"data = np.matrix(alldata[['price', 'sqrMetres']])\n",
"\n",
"m, n_plus_1 = data.shape\n",
"n = n_plus_1 - 1\n",
"Xn = data[:, 0:n]\n",
"\n",
"Xo = np.matrix(np.concatenate((np.ones((m, 1)), Xn), axis=1)).reshape(m, n + 1)\n",
"yo = np.matrix(data[:, -1]).reshape(m, 1)\n",
"\n",
"Xo /= np.amax(Xo, axis=0)\n",
"yo /= np.amax(yo, axis=0)"
]
},
{
"cell_type": "code",
"execution_count": 30,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA10AAAH0CAYAAADG90dQAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjYuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8o6BhiAAAACXBIWXMAAA9hAAAPYQGoP6dpAAA0nklEQVR4nO3de5SU5Z0n8G83SIOBBlG5JXiLRowi3g14wwmKl+MBzW4yxhMja3RVzIKYGNkzGyfJ7GHdVTRnRsRMTmIyGyfmohiTqIsQFZBovOBERznRUTFK4y12CzIo3bV/1NDS0kDTXW9f6M/nnPc09dbzPvWrfruq3i/P+z5VVSqVSgEAAKAQ1V1dAAAAwM5M6AIAACiQ0AUAAFAgoQsAAKBAQhcAAECBhC4AAIACCV0AAAAFEroAAAAKJHQBAAAUSOgCAAAoUI8JXXPmzMnRRx+dQYMGZdiwYZk6dWpWrly53e1+/vOfZ8yYMenfv3/Gjh2b3/72t51QLQAAQFmPCV0PPvhgpk+fnt///vdZuHBhPvjgg5x66qlZt27dVrd5+OGHc+655+bCCy/Mk08+malTp2bq1Kl5+umnO7FyAACgN6sqlUqlri6iPd54440MGzYsDz74YE488cRW23zhC1/IunXr8utf/7p53Wc+85kcdthhmT9/fmeVCgAA9GJ9u7qA9qqvr0+SDB06dKttli9fnlmzZrVYN3ny5CxYsGCr22zYsCEbNmxovt3U1JS33347u+++e6qqqjpWNAAA0K2VSqW8++67GTVqVKqrK3NiYI8MXU1NTZk5c2aOO+64HHLIIVttV1dXl+HDh7dYN3z48NTV1W11mzlz5uRb3/pWxWoFAAB6nldeeSWf+MQnKtJXjwxd06dPz9NPP52lS5dWvO/Zs2e3GB2rr6/PXnvtlVdeeSW1tbUVfzwAAKD7aGhoyOjRozNo0KCK9dnjQtfll1+eX//613nooYe2mzxHjBiRNWvWtFi3Zs2ajBgxYqvb1NTUpKamZov1tbW1QhcAAPQSlby0qMfMXlgqlXL55ZfnzjvvzOLFi7Pvvvtud5vx48dn0aJFLdYtXLgw48ePL6pMAACAFnrMSNf06dNz22235a677sqgQYOar8saPHhwBgwYkCQ5//zz8/GPfzxz5sxJksyYMSMnnXRSrr/++px55pn56U9/msceeyzf+973uux5AAAAvUuPGem6+eabU19fn4kTJ2bkyJHNy+23397cZtWqVVm9enXz7QkTJuS2227L9773vYwbNy6/+MUvsmDBgm1OvgEAAFBJPfZ7ujpLQ0NDBg8enPr6etd0AQDATq6I4/8eM9IFAADQEwldAAAABRK6AAAACiR0AQAAFEjoAgAAKJDQBQAAUCChCwAAoEBCFwAAQIGELgAAgAIJXQAAAAUSugAAAAokdAEAABRI6AIAACiQ0AUAAFAgoQsAAKBAQhcAAECBhC4AAIACCV0AAAAFEroAAAAKJHQBAAAUSOgCAAAokNAFAABQIKELAACgQEIXAABAgYQuAACAAgldAAAABRK6AAAACiR0AQAAFEjoAgAAKJDQBQAAUCChCwAAoEBCFwAAQIGELgAAgAIJXQAAAAUSugAAAA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ycDRs2pKGhocUCsM3rtnaEWVABoNdp1+mFS5cuze9+97vcc889Ofjgg7PLLru0uP+OO+6oSHGbe/PNN9PY2LjFSNXw4cPz3HPPtbrNgQcemB/84Ac59NBDU19fn+uuuy4TJkzIM888k0984hOtbjNnzpx861vfqnj9QA+36bqtjgQuAKBXalfoGjJkSM4+++xK11Jx48ePz/jx45tvT5gwIQcddFBuueWWfOc732l1m9mzZ2fWrFnNtxsaGjJ69OjCawW6sfXrP7yGq6MaGlzTBQC9TLtC1w9/+MNK17Fde+yxR/r06ZM1a9a0WL9mzZqMGDGiTX3ssssuOfzww/P8889vtU1NTU1qamo6VCuwk2loqEzgqq52eiEA9ELt/nLkjRs35v77788tt9ySd999N0ny2muvZe3atRUrbnP9+vXLkUcemUWLFjWva2pqyqJFi1qMZm1LY2Nj/vjHP2bkyJGF1AjspGpry4GpI/r2Tc4+2ygXAPRC7Rrpevnll3Paaadl1apV2bBhQ0455ZQMGjQo1157bTZs2JD58+dXus4kyaxZs/LlL385Rx11VI455pjceOONWbduXaZNm5YkOf/88/Pxj388c+bMSZJ8+9vfzmc+85nsv//+eeedd/J//s//ycsvv5yvfOUrhdQH7KQGDEimTEkWLNix2Qo319iYXHFFRcsCAHqGdoWuGTNm5KijjspTTz2V3XffvXn92WefnYsuuqhixX3UF77whbzxxhv55je/mbq6uhx22GG59957myfXWLVqVao3+9/ov/zlL7noootSV1eX3XbbLUceeWQefvjhfPrTny6sRmAnNWlS+Xu2dlTfvuXANW9ectxxla8LAOj2qkrtmPd99913z8MPP5wDDzwwgwYNylNPPZX99tsvL730Uj796U/nvffeK6LWLtHQ0JDBgwenvr4+ta7FgN7rxBOTJUt2bJuqquScc8ojXAIXAPQIRRz/t+sihaampjQ2Nm6x/s9//nMGDRrU4aIAupXvfnfHA1dSPhVx0iSBCwB6uXaFrlNPPTU33nhj8+2qqqqsXbs211xzTc4444xK1QbQ9ZYu7di1WJdemixbVrl6AIAep12nF/75z3/O5MmTUyqV8qc//SlHHXVU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v/32zJo1K9dcc02eeOKJjBs3LpMnT87rr7/eavuHH3445557bi688MI8+eSTmTp1aqZOnZqnn366kysHur0BA5Izz6xcfyefvP2RrAEDkuHDTZoBADu5qlKpVOrqItrq2GOPzdFHH51/+Id/SJI0NTVl9OjR+epXv5qrr756i/Zf+MIXsm7duvz6179uXveZz3wmhx12WObPn9+mx2xoaMjgwYNTX1+fWlM4w87t5z9PPv/5yvT11lvlMNXQUB5FE6wAoEco4vi/x4x0vf/++3n88cczadKk5nXV1dWZNGlSli9f3uo2y5cvb9E+SSZPnrzV9kmyYcOGNDQ0tFiAXuLooyvTz557JkOHGskCAJL0oND15ptvprGxMcOHD2+xfvjw4amrq2t1m7q6uh1qnyRz5szJ4MGDm5fRo0d3vHigZ/jI+0W7XXVVZfoBAHYKPSZ0dZbZs2envr6+eXnllVe6uiSgswwYkBxzTMf66N8/+drXKlMPALBT6Lv9Jt3DHnvskT59+mTNmjUt1q9ZsyYjRoxodZsRI0bsUPskqampSU1NTccLBnqm669PTjih/dvPnVu5WgCAnUKPGenq169fjjzyyCxatKh5XVNTUxYtWpTx48e3us348eNbtE+ShQsXbrU9QI4/PvnsZ9u37bnnlqeDBwDYTI8JXUkya9as/OM//mN+9KMf5dlnn82ll16adevWZdq0aUmS888/P7Nnz25uP2PGjNx77725/vrr89xzz+Vv//Zv89hjj+Xyyy/vqqcA9AT335+MGdP29qNGlb9/67bbiqsJAOixeszphUl5Cvg33ngj3/zmN1NXV5fDDjss9957b/NkGatWrUp19Yc5csKECbntttvyN3/zN/nv//2/54ADDsiCBQtyyCGHdNVTAHqKZ58tX5t1441JY2PL+6qrk2uvTU47rRy4hg7tkhIBgJ6hR31PV1fwPV1AXn01eeyxZODA5PDDhSwA2IkVcfzfo0a6ALrExz9eXgAA2qFHXdMFAADQ0whdAAAABRK6AAAACiR0AQAAFEjoAgAAKJDQBQAAUCChCwAAoEBCFwAAQIGELgAAgAIJXQAAAAUSugAAAAokdAEAABRI6AIAACiQ0AUAAFAgoQsAAKBAQhcAAECBhC4AAIACCV0AAAAFEroAAAAKJHQBAAAUSOgCAAAokNAFAABQIKELAACgQEIXAABAgYQuAACAAgldAAAABRK6AAAACiR0AQAAFEjoAgAAKJDQBQAAUCChCwAAoEBCFwAAQIGELgAAgAIJXQAAAAUSugAAAAokdAEAABRI6AIAACiQ0AUAAFAgoQsAAKBAQhcAAECBhC4AAIACCV0AAAAFEroAAAAKJHQBAAAUSOgCAAAokNAFAABQIKELAACgQEIXAABAgYQuAACAAgldAAAABRK6AAAACiR0AQAAFEjoAgAAKJDQBQAAUCChCwAAoEBCFwAAQIGELgAAgAIJXQAAAAUSugAAAAokdAEAABSox4Sut99+O+edd15qa2szZMiQXHjhhVm7du02t5k4cWKqqqpaLJdcckknVQwAAJD07eoC2uq8887L6tWrs3DhwnzwwQeZNm1aLr744tx2223b3O6iiy7Kt7/97ebbu+66a9GlAgAANOsRoevZZ5/Nvffemz/84Q856qijkiR///d/nzPOOCPXXXddRo0atdVtd91114wYMaKzSgUAAGihR5xeuHz58gwZMqQ5cCXJpEmTUl1dnUceeWSb2/7kJz/JHnvskUMOOSSzZ8/Oe++9t832GzZsSENDQ4sFAACgvXrESFddXV2GDRvWYl3fvn0zdOjQ1NXVbXW7L37xi9l7770zatSo/Mu//Eu+8Y1vZOXKlbnjjju2us2cOXPyrW99q2K1AwAAvVuXhq6rr74611577TbbPPvss+3u/+KLL27+99ixYzNy5Mh89rOfzQsvvJBPfvKTrW4ze/bszJo1q/l2Q0NDRo8e3e4aAACA3q1LQ9eVV16ZCy64YJtt9ttvv4wYMSKvv/56i/UbN27M22+/vUPXax177LFJkueff36roaumpiY1NTVt7hMAAGBbujR07bnnntlzzz232278+PF555138vjjj+fII49MkixevDhNTU3NQaotVqxYkSQZOXJku+oFAADYUT1iIo2DDjoop512Wi666KI8+uijWbZsWS6//PL89V//dfPMha+++mrGjBmTRx99NEnywgsv5Dvf+U4ef/zxvPTSS/nVr36V888/PyeeeGIOPfTQrnw6AABAL9Ij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MzjBw5MvPnz89RRx2VDRs25Pvf/34mTpyYRx55JEcccURXl0cHNDU1ZebMmTnuuONyyCGHbLVdJT7/hS52eldffXWuvfbabbZ59tln293/5td8jR07NiNHjsxnP/vZvPDCC/nkJz/Z7n6B7mX8+PEZP3588+0JEybkoIMOyi233JLvfOc7XVgZUKQDDzwwBx54YPPtCRMm5IUXXsgNN9yQf/qnf+rCyuio6dOn5+mnn87SpUsLfyyhi53elVdemQsuuGCbbfbbb7+MGDFiiwvoN27cmLfffjsjRoxo8+Mde+yxSZLnn39e6OrG9thjj/Tp0ydr1qxpsX7NmjVb3d8jRozYofZ0X+3Z/x+1yy675PDDD8/zzz9fRIl0I1t77dfW1hrl6qWOOeaYTjlQpziXX35586Rp2ztboRKf/67pYqe35557ZsyYMdtc+vXrl/Hjx+edd97J448/3rzt4sWL09TU1Byk2mLFihVJyqcj0H3169cvRx55ZBYtWtS8rqmpKYsWLWoxmrG58ePHt2ifJAsXLtxqe7qv9uz/j2psbMwf//hHr/VewGufj1qxYoXXfg9VKpVy+eWX584778zixYuz7777bnebirwHtHemD9gZnXbaaaXDDz+89Mgjj5SWLl1aOuCAA0rnnntu8/1//vOfSwceeGDpkUceKZVKpdLzzz9f+va3v1167LHHSi+++GLprrvuKu23336lE088saueAjvgpz/9aammpqZ06623lv71X/+1dPHFF5eGDBlSqqurK5VKpdKXvvSl0tVXX93cftmyZaW+ffuWrrvuutKzzz5buuaaa0q77LJL6Y9//GNXPQU6YEf3/7e+9a3SfffdV3rhhRdKjz/+eOmv//qvS/379y8988wzXfUUaKd333239OSTT5aefPLJUpLS3LlzS08++WTp5ZdfLpVKpdLVV19d+tKXvtTc/t/+7d9Ku+66a+nrX/966dlnny3ddNNNpT59+pTuvffernoKdMCO7v8bbrihtGDBgtKf/vSn0h//+MfSjBkzStXV1aX777+/q54CHXDppZeWBg8eXHrggQdKq1evbl7ee++95jZFfP4LXbCZt956q3TuueeWBg4cWKqtrS1Nmzat9O677zbf/+KLL5aSlH73u9+VSqVSadWqVaUTTzyxNHTo0FJNTU1p//33L339618v1dfXd9EzYEf9/d//fWmvvfYq9evXr3TMMceUfv/73zffd9JJJ5W+/OUvt2j/s5/9rPSpT32q1K9fv9LBBx9c+s1vftPJFVNJO7L/Z86c2dx2+PDhpTPOOKP0xBNPdEHVdNSmKcA/umza31/+8pdLJ5100hbbHHbYYaV+/fqV9ttvv9IPf/jDTq+bytjR/X/ttdeWPvnJT5b69+9fGjp0aGnixImlxYsXd03xdFhr+z5Ji9d0EZ//Vf/x4AAAABTANV0AAAAFEroAAAAKJHQBAAAUSOgCAAAokNAFAABQIKELAACgQEIXAABAgYQuAACAAgldAFCwl156KVVVVVmxYkVXlwJAF6gqlUqlri4CALqLiRMn5rDDDsuNN95YsT4bGxvzxhtvZI899kjfvn0r1i8APYN3fgDYQaVSKY2NjW0OUH369MmIESMKrgqA7srphQD0WBMnTsxXv/rVzJw5M7vttluGDx+ef/zHf8y6desybdq0DBo0KPvvv3/uueee5m2efvrpnH766Rk4cGCGDx+eL33pS3nzzTeTJBdccEEefPDBfPe7301VVVWqqqry0ksv5YEHHkhVVVXuueeeHHnkkampqcnSpUvzwgsvZMqUKRk+fHgGDhyYo48+Ovfff3/zY23a7qPLBRdc0Nm/KgC6kNAFQI/2ox/9KHvssUceffTRfPWrX82ll16a//yf/3MmTJiQJ554Iqeeemq+9KUv5b333ss777yTv/qrv8rhhx+exx57LPfee2/WrFmTz3/+80mS7373uxk/fnwuuuiirF69OqtXr87o0aObH+vqq6/O//pf/yvPPvtsDj300KxduzZnnHFGFi1alCeffDKnnXZazjrrrKxatSpJMmHChOZ+Vq9encWLF6d///458cQTu+R3BUDXcE0XAD3WxIkT09jYmCVLliQpXzs1ePDgnHPOOfnxj3+cJKmrq8vIkSOzfPny3H///VmyZEnuu+++5j7+/Oc/Z/To0Vm5cmU+9alPtXpN1wMPPJCTTz45CxYsyJQpU7ZZ0yGHHJJLLrkkl19+eYv1b731Vo455picfvrp+Yd/+IcK/QYA6Alc0wVAj3booYc2/7tPnz7ZfffdM3bs2OZ1w4cPT5K8/vrreeqpp/K73/0uAwcO3KKfF154IZ/61Ke2+VhHHXVUi9tr167N3/7t3+Y3v/lNVq9enY0bN2b9+vXNI12bfPDBB/nc5z6X/fbbr6ITdADQMwhdAPRou+yyS4vbVVVVLdZVVVUlSZqamrJ27dqcddZZufbaa7foZ+TIkdt9rI997GMtbn/ta1/LwoULc91112X//ffPgAED8p/+03/K+++/36LdpZdemldffTWPPvqo2QsBeiHv/AD0GkcccUR++ctfZp999tlq+OnXr18aGxvb1N+yZctywQUX5Oyzz05SHvl66aWXWrSZO3dufvGLX+T3v/99dttttw7VD0DPZCINAHqN6dOn5+233865556bP/zhD3nhhRdy3333Zdq0ac1Ba5999skjjzySl156KW+++Waampq22t8BBxyQO+64IytWrMhTTz2VL37xiy3a33///bnqqqty4403ZsiQIamrq0tdXV3q6+sLf64AdB9CFwC9xqhRo7Js2bI0Njbm1FNPzdixYzNz5swMGTIk1dXlj8Svfe1r6dOnTz796U9nzz333OL6rM3NnTs3u+22WyZMmJCzzjorkydPzhFHHNF8/9KlS9PY2Jhp06Zl5MiRzcuMGTMKf64AdB9mLwQAACiQkS4AAIACCV0AAAAFEroAAAAKJHQBAAAUSOgCAAAokNAFAABQIKELAACgQEIXAABAgYQuAACAAgldAAAABRK6AAAACvT/AUJCS8PN32+JAAAAAElFTkSuQmCC\n",
"text/plain": [
"<Figure size 960x540 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plot_data(Xo, yo, xlabel=u'metraż', ylabel=u'cena')\n",
"theta_start = np.matrix([0.0, 0.0]).reshape(2, 1)\n",
"theta, logs = gradient_descent(cost, gradient, theta_start, Xo, yo, alpha=0.01)\n",
"plot_regression(fig, h_linear, theta, Xo)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"source": [
"Na powyższym przykładzie obserwacja odstająca jawi sie jako pojedynczy punkt po prawej stronie wykresu. Widzimy, że otrzymana krzywa regresji zamiast odwzorowywać ogólny trend, próbuje „dopasować się” do tej pojedynczej obserwacji.\n",
"\n",
"Dlatego taką obserwację należy usunąć ze zbioru danych (zobacz ponizej)."
]
},
{
"cell_type": "code",
"execution_count": 31,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [],
"source": [
"# Odrzućmy obserwacje odstające\n",
"alldata_no_outliers = [\n",
" (index, item) for index, item in alldata.iterrows() \n",
" if item.price > 100 and item.sqrMetres > 10]\n",
"\n",
"alldata_no_outliers = alldata.loc[(alldata['price'] > 100) & (alldata['sqrMetres'] > 100)]"
]
},
{
"cell_type": "code",
"execution_count": 32,
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"outputs": [],
"source": [
"data = np.matrix(alldata_no_outliers[['price', 'sqrMetres']])\n",
"\n",
"m, n_plus_1 = data.shape\n",
"n = n_plus_1 - 1\n",
"Xn = data[:, 0:n]\n",
"\n",
"Xo = np.matrix(np.concatenate((np.ones((m, 1)), Xn), axis=1)).reshape(m, n + 1)\n",
"yo = np.matrix(data[:, -1]).reshape(m, 1)\n",
"\n",
"Xo /= np.amax(Xo, axis=0)\n",
"yo /= np.amax(yo, axis=0)"
]
},
{
"cell_type": "code",
"execution_count": 33,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA10AAAH0CAYAAADG90dQAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjYuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8o6BhiAAAACXBIWXMAAA9hAAAPYQGoP6dpAAA+HElEQVR4nO3de3TU9Z3/8ddMJpkEkwkikosNKmLBCnIRwQACVhSBw3Lpbi1yRFmLi4ILhlZlf66stbspuwp0Wy66PUrt1movAq3XhSBIEEEusWAtR6kKYhJQNENCCEnm+/vjS4ZMkplMkvnMJXk+zpmTzHe+38knYQjz4vN5v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g6HI+A2b968KI0YAAAAACRXrAcQrlmzZqm0tFSbNm1SbW2t5syZo3vuuUfPP/98yOvmzp2rH/3oR/773bp1Mz1UAAAAAPBLiND1wQcf6PXXX9e7776rYcOGSZJ+9rOfadKkSXriiSeUm5sb9Npu3bopOzs7WkMFAAAAgAAJsbxw586d6t69uz9wSdL48ePldDq1a9eukNf++te/Vs+ePTVgwAAtWbJEp0+fDnl+TU2NvF5vwA0AAAAA2ishZrrKysrUq1evgGMul0s9evRQWVlZ0Otuv/12XXrppcrNzdWf//xnPfTQQzp06JBeeumloNcUFhbqsccei9jYAQAAAHRtMQ1dDz/8sJYtWxbynA8++KDdz3/PPff4Px84cKBycnJ000036fDhw7riiitavGbJkiUqKCjw3/d6vcrLy2v3GAAAAAB0bTENXYsXL9Zdd90V8pw+ffooOztbx48fDzheV1enkydPtqlea8SIEZKkjz76KGjocrvdcrvdYT8nAAAAAIQS09B18cUX6+KLL271vPz8fH399dfau3evrr32WknSli1b5PP5/EEqHCUlJZKknJycdo0XAAAAANoqIRppXHXVVbr11ls1d+5c7d69Wzt27NCCBQv0ve99z9+58NixY+rfv792794tSTp8+LAef/xx7d27V5988on++Mc/avbs2RozZoyuueaaWH47AAAAALqQhAhdkt2FsH///rrppps0adIkjR49Wk8//bT/8draWh06dMjfnTAlJUWbN2/WLbfcov79+2vx4sX6zne+oz/96U+x+hYAAAAAdEEOy7KsWA8innm9XmVmZqqiokIejyfWwwEAAABgkIn3/wkz0wUAAAAAiYjQBQAAAAAGEboAAAAAwCBCFwAAAAAYROgCAAAAAIMIXQAAAABgEKELAAAAAAwidAEAAACAQYQuAAAAADCI0AUAAAAABhG6AAAAAMAgQhcAAAAAGEToAgAAAACDCF0AAAAAYBChCwAAAAAMInQBAAAAgEGELgAAAAAwiNAFAAAAAAYRugAAAADAIEIXAAAAABhE6AIAAAAAgwhdAAAAAGAQoQsAAAAADCJ0AQAAAIBBhC4AAAAAMIjQBQAAAAAGEboAAAAAwCBCFwAAAAAYROgCA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NGzdaffr0scaMGROrbwER8sILL1hut9tat26d9Ze//MW65557rO7du1tlZWWWZVnWHXfcYT388MP+83fs2GG5XC7riSeesD744ANr6dKlVnJysnXgwIFYfQswpK2vjccee8x64403rMOHD1t79+61vve971mpqanW+++/H6tvAYacOnXK2r9/v7V//35LkrV8+XJr//791qeffmpZlmU9/PDD1h133OE//29/+5vVrVs364c//KH1wQcfWKtWrbKSkpKs119/PVbfAgxq6+tjxYoV1oYNG6wPP/zQOnDggLVw4ULL6XRamzdvjtW3AEPuvfdeKzMz09q6datVWlrqv50+fdp/jon3HYQuxMyXX35pzZw500pPT7c8Ho81Z84c69SpU/7HP/74Y0uS9eabb1qWZVlHjhyxxowZY/Xo0cNyu91W3759rR/+8IdWRUVFjL4DRNLPfvYzq3fv3lZKSoo1fPhw65133vE/NnbsWOvOO+8MOP+3v/2t9c1vftNKSUmxrr76auuVV16J8ogRLW15bSxatMh/blZWljVp0iRr3759MRg1TGto8d301vB6uPPOO62xY8c2u2bw4MFWSkqK1adPH+vZZ5+N+rgRHW19fSxbtsy64oorrNTUVKtHjx7WuHHjrC1btsRm8DCqpdeFpIDfBybedzjOfXEAAAAAgAHUdAEAAACAQYQuAAAAADCI0AUAAAAABhG6AAAAAMAgQhcAAAAAGEToAgAAAACDCF0AAAAAYBChCwAAAAAMInQBAGDYJ598IofDoZKSklgPBQAQAw7LsqxYDwIAgHgxbtw4DR48WCtXrozYc9bX1+vEiRPq2bOnXC5XxJ4XAJAY+M0PAEAbWZal+vr6sANUUlKSsrOzDY8KABCvWF4IAEhY48aN0/33369FixbpwgsvVFZWlv7nf/5HVVVVmjNnjjIyMtS3b1+99tpr/msOHjyoiRMnKj09XVlZWbrjjjv0xRdfSJLuuusubdu2TT/96U/lcDjkcDj0ySefaOvWrXI4HHrttdd07bXXyu12q7i4WIcPH9bUqVOVlZWl9PR0XXfdddq8ebP/azVc1/R21113RftHBQCIIUIXACCh/fKXv1TPnj21e/du3X///br33nv1D//wDxo5cqT27dunW265R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AAAgEGELgAAAAAwiNAFAAAAAAb9f3ntuvpIGYyMAAAAAElFTkSuQmCC\n",
"text/plain": [
"<Figure size 960x540 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plot_data(Xo, yo, xlabel=u'metraż', ylabel=u'cena')\n",
"theta_start = np.matrix([0.0, 0.0]).reshape(2, 1)\n",
"theta, logs = gradient_descent(cost, gradient, theta_start, Xo, yo, alpha=0.01)\n",
"plot_regression(fig, h_linear, theta, Xo)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "notes"
}
},
"source": [
"Na powyższym wykresie widać, że po odrzuceniu obserwacji odstających otrzymujemy dużo bardziej „wiarygodną” krzywą regresji."
]
}
],
"metadata": {
"celltoolbar": "Slideshow",
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.6"
},
"livereveal": {
"start_slideshow_at": "selected",
"theme": "white"
},
"vscode": {
"interpreter": {
"hash": "916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1"
}
}
},
"nbformat": 4,
"nbformat_minor": 4
}