From a0c2abd8a6a3f5c139795b7a240d4c7282b4c1ca Mon Sep 17 00:00:00 2001 From: s434695 Date: Mon, 31 May 2021 21:29:28 +0200 Subject: [PATCH] implementation update --- KernelRegression.ipynb | 19031 +++++++++--------- KernelRegression.py | 65 +- __pycache__/KernelRegression.cpython-38.pyc | Bin 1349 -> 2917 bytes data6.tsv | 20 + 4 files changed, 9403 insertions(+), 9713 deletions(-) create mode 100644 data6.tsv diff --git a/KernelRegression.ipynb b/KernelRegression.ipynb index 39629eb..251906b 100644 --- a/KernelRegression.ipynb +++ b/KernelRegression.ipynb @@ -20,7 +20,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 3, "metadata": {}, "outputs": [], "source": [ @@ -34,29 +34,6 @@ "fun_y = lambda x: -(x*x) + residuals" ] }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "array([ 0.32486907, 0.87764872, 1.89436565, 2.78540628, 4.17308153,\n", - " 4.53969226, 6.34896235, 6.84775862, 8.06380782, 8.95012592,\n", - " 10.29242159, 10.58797186, 11.93551656, 12.92318913, 14.22675389,\n", - " 14.78002175, 15.96551436, 16.82442832, 18.00844275, 19.11656304])" - ] - }, - "execution_count": 3, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "new_x" - ] - }, { "cell_type": "code", "execution_count": 4, @@ -1063,9 +1040,9 @@ } }, "text/html": [ - "
\n", - " " - ] - }, - "metadata": {}, - "output_type": "display_data" - }, { "data": { "application/vnd.plotly.v1+json": { @@ -22063,48 +21694,48 @@ 39.7 ], "y": [ - 37.66141754476209, - 37.3722698204789, - 37.3722698204789, - 36.915184565586024, - 35.41724225587412, - 35.06966909119557, - 34.37492744184658, - 33.06269633456447, - 32.76790651477745, - 32.239639579969264, - 32.012105919533475, - 31.908723273813248, - 31.508131351321847, - 31.315775670225353, - 31.374640004534672, - 31.41314663999423, - 31.658371676224107, - 32.671979216749506, - 33.26978316154742, - 34.075347693814074, - 35.607264384723926, - 35.607264384723926, - 35.86262177747929, - 35.9805254118714, - 36.19443866404054, - 36.454090083664646, - 36.716512230160795, - 36.70401746285473, - 32.068111095309085, - 32.068111095309085, - 29.22055160491219, - 28.12997331390077, - 27.618116696029265, - 27.59859118807964, - 28.01419640037189, - 28.062604240971872, - 28.749805941536284, - 40.914928843639686, - 41.56550672507172, - 38.41543137159373, - 34.175154720645594, - 26.047688036744347 + 40.60522193211489, + 42.906735751295344, + 42.906735751295344, + 45.475965665236046, + 47.88163586315376, + 47.36513545347468, + 44.69143968871595, + 35.57015985790409, + 33.00458069062721, + 26.67335445265752, + 23.782277604707524, + 22.931872646353987, + 20.29078947368421, + 18.735976065818996, + 18.18740157480315, + 18.09105560032232, + 18.58231707317073, + 22.05865102639296, + 30.42289498580888, + 39.834529505582125, + 46.968340262232175, + 46.968340262232175, + 47.52639949109415, + 47.59961807765755, + 47.821312540610776, + 47.55285376561972, + 45.99255275134465, + 44.34367056431114, + 21.86852589641434, + 21.86852589641434, + 24.676672384219554, + 27.406779661016948, + 26.00527240773287, + 25.744897959183675, + 31.037486218302085, + 30.120494335736353, + 23.763848396501462, + 44.064516129032256, + 43.935483870967744, + 43, + 34, + 19 ] } ], @@ -22944,9 +22575,9 @@ } }, "text/html": [ - "