Materiały na podstawie ZUMZ'19

This commit is contained in:
Paweł Skórzewski 2021-03-17 20:09:43 +01:00
parent be3549e6af
commit 5161903b8f
57 changed files with 82968 additions and 0 deletions

97
w1/data01.csv Normal file
View File

@ -0,0 +1,97 @@
6.1101,17.592
5.5277,9.1302
8.5186,13.662
7.0032,11.854
5.8598,6.8233
8.3829,11.886
7.4764,4.3483
8.5781,12
6.4862,6.5987
5.0546,3.8166
5.7107,3.2522
14.164,15.505
5.734,3.1551
8.4084,7.2258
5.6407,0.71618
5.3794,3.5129
6.3654,5.3048
5.1301,0.56077
6.4296,3.6518
7.0708,5.3893
6.1891,3.1386
20.27,21.767
5.4901,4.263
6.3261,5.1875
5.5649,3.0825
18.945,22.638
12.828,13.501
10.957,7.0467
13.176,14.692
22.203,24.147
5.2524,-1.22
6.5894,5.9966
9.2482,12.134
5.8918,1.8495
8.2111,6.5426
7.9334,4.5623
8.0959,4.1164
5.6063,3.3928
12.836,10.117
6.3534,5.4974
5.4069,0.55657
6.8825,3.9115
11.708,5.3854
5.7737,2.4406
7.8247,6.7318
7.0931,1.0463
5.0702,5.1337
5.8014,1.844
11.7,8.0043
5.5416,1.0179
7.5402,6.7504
5.3077,1.8396
7.4239,4.2885
7.6031,4.9981
6.3328,1.4233
6.3589,-1.4211
6.2742,2.4756
5.6397,4.6042
9.3102,3.9624
9.4536,5.4141
8.8254,5.1694
5.1793,-0.74279
21.279,17.929
14.908,12.054
18.959,17.054
7.2182,4.8852
8.2951,5.7442
10.236,7.7754
5.4994,1.0173
20.341,20.992
10.136,6.6799
7.3345,4.0259
6.0062,1.2784
7.2259,3.3411
5.0269,-2.6807
6.5479,0.29678
7.5386,3.8845
5.0365,5.7014
10.274,6.7526
5.1077,2.0576
5.7292,0.47953
5.1884,0.20421
6.3557,0.67861
9.7687,7.5435
6.5159,5.3436
8.5172,4.2415
9.1802,6.7981
6.002,0.92695
5.5204,0.152
5.0594,2.8214
5.7077,1.8451
7.6366,4.2959
5.8707,7.2029
5.3054,1.9869
8.2934,0.14454
13.394,9.0551
5.4369,0.61705
1 6.1101 17.592
2 5.5277 9.1302
3 8.5186 13.662
4 7.0032 11.854
5 5.8598 6.8233
6 8.3829 11.886
7 7.4764 4.3483
8 8.5781 12
9 6.4862 6.5987
10 5.0546 3.8166
11 5.7107 3.2522
12 14.164 15.505
13 5.734 3.1551
14 8.4084 7.2258
15 5.6407 0.71618
16 5.3794 3.5129
17 6.3654 5.3048
18 5.1301 0.56077
19 6.4296 3.6518
20 7.0708 5.3893
21 6.1891 3.1386
22 20.27 21.767
23 5.4901 4.263
24 6.3261 5.1875
25 5.5649 3.0825
26 18.945 22.638
27 12.828 13.501
28 10.957 7.0467
29 13.176 14.692
30 22.203 24.147
31 5.2524 -1.22
32 6.5894 5.9966
33 9.2482 12.134
34 5.8918 1.8495
35 8.2111 6.5426
36 7.9334 4.5623
37 8.0959 4.1164
38 5.6063 3.3928
39 12.836 10.117
40 6.3534 5.4974
41 5.4069 0.55657
42 6.8825 3.9115
43 11.708 5.3854
44 5.7737 2.4406
45 7.8247 6.7318
46 7.0931 1.0463
47 5.0702 5.1337
48 5.8014 1.844
49 11.7 8.0043
50 5.5416 1.0179
51 7.5402 6.7504
52 5.3077 1.8396
53 7.4239 4.2885
54 7.6031 4.9981
55 6.3328 1.4233
56 6.3589 -1.4211
57 6.2742 2.4756
58 5.6397 4.6042
59 9.3102 3.9624
60 9.4536 5.4141
61 8.8254 5.1694
62 5.1793 -0.74279
63 21.279 17.929
64 14.908 12.054
65 18.959 17.054
66 7.2182 4.8852
67 8.2951 5.7442
68 10.236 7.7754
69 5.4994 1.0173
70 20.341 20.992
71 10.136 6.6799
72 7.3345 4.0259
73 6.0062 1.2784
74 7.2259 3.3411
75 5.0269 -2.6807
76 6.5479 0.29678
77 7.5386 3.8845
78 5.0365 5.7014
79 10.274 6.7526
80 5.1077 2.0576
81 5.7292 0.47953
82 5.1884 0.20421
83 6.3557 0.67861
84 9.7687 7.5435
85 6.5159 5.3436
86 8.5172 4.2415
87 9.1802 6.7981
88 6.002 0.92695
89 5.5204 0.152
90 5.0594 2.8214
91 5.7077 1.8451
92 7.6366 4.2959
93 5.8707 7.2029
94 5.3054 1.9869
95 8.2934 0.14454
96 13.394 9.0551
97 5.4369 0.61705

1675
w1/data02.tsv Normal file

File diff suppressed because it is too large Load Diff

BIN
w1/zumz181.zip Normal file

Binary file not shown.

774
w1/zumz181a.ipynb Normal file

File diff suppressed because one or more lines are too long

BIN
w1/zumz181a.pdf Normal file

Binary file not shown.

41701
w1/zumz181b.ipynb Normal file

File diff suppressed because it is too large Load Diff

BIN
w1/zumz181b.pdf Normal file

Binary file not shown.

BIN
w2/bias2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

BIN
w2/curves.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

97
w2/data_company.csv Normal file
View File

@ -0,0 +1,97 @@
6.1101,17.592
5.5277,9.1302
8.5186,13.662
7.0032,11.854
5.8598,6.8233
8.3829,11.886
7.4764,4.3483
8.5781,12
6.4862,6.5987
5.0546,3.8166
5.7107,3.2522
14.164,15.505
5.734,3.1551
8.4084,7.2258
5.6407,0.71618
5.3794,3.5129
6.3654,5.3048
5.1301,0.56077
6.4296,3.6518
7.0708,5.3893
6.1891,3.1386
20.27,21.767
5.4901,4.263
6.3261,5.1875
5.5649,3.0825
18.945,22.638
12.828,13.501
10.957,7.0467
13.176,14.692
22.203,24.147
5.2524,-1.22
6.5894,5.9966
9.2482,12.134
5.8918,1.8495
8.2111,6.5426
7.9334,4.5623
8.0959,4.1164
5.6063,3.3928
12.836,10.117
6.3534,5.4974
5.4069,0.55657
6.8825,3.9115
11.708,5.3854
5.7737,2.4406
7.8247,6.7318
7.0931,1.0463
5.0702,5.1337
5.8014,1.844
11.7,8.0043
5.5416,1.0179
7.5402,6.7504
5.3077,1.8396
7.4239,4.2885
7.6031,4.9981
6.3328,1.4233
6.3589,-1.4211
6.2742,2.4756
5.6397,4.6042
9.3102,3.9624
9.4536,5.4141
8.8254,5.1694
5.1793,-0.74279
21.279,17.929
14.908,12.054
18.959,17.054
7.2182,4.8852
8.2951,5.7442
10.236,7.7754
5.4994,1.0173
20.341,20.992
10.136,6.6799
7.3345,4.0259
6.0062,1.2784
7.2259,3.3411
5.0269,-2.6807
6.5479,0.29678
7.5386,3.8845
5.0365,5.7014
10.274,6.7526
5.1077,2.0576
5.7292,0.47953
5.1884,0.20421
6.3557,0.67861
9.7687,7.5435
6.5159,5.3436
8.5172,4.2415
9.1802,6.7981
6.002,0.92695
5.5204,0.152
5.0594,2.8214
5.7077,1.8451
7.6366,4.2959
5.8707,7.2029
5.3054,1.9869
8.2934,0.14454
13.394,9.0551
5.4369,0.61705
1 6.1101 17.592
2 5.5277 9.1302
3 8.5186 13.662
4 7.0032 11.854
5 5.8598 6.8233
6 8.3829 11.886
7 7.4764 4.3483
8 8.5781 12
9 6.4862 6.5987
10 5.0546 3.8166
11 5.7107 3.2522
12 14.164 15.505
13 5.734 3.1551
14 8.4084 7.2258
15 5.6407 0.71618
16 5.3794 3.5129
17 6.3654 5.3048
18 5.1301 0.56077
19 6.4296 3.6518
20 7.0708 5.3893
21 6.1891 3.1386
22 20.27 21.767
23 5.4901 4.263
24 6.3261 5.1875
25 5.5649 3.0825
26 18.945 22.638
27 12.828 13.501
28 10.957 7.0467
29 13.176 14.692
30 22.203 24.147
31 5.2524 -1.22
32 6.5894 5.9966
33 9.2482 12.134
34 5.8918 1.8495
35 8.2111 6.5426
36 7.9334 4.5623
37 8.0959 4.1164
38 5.6063 3.3928
39 12.836 10.117
40 6.3534 5.4974
41 5.4069 0.55657
42 6.8825 3.9115
43 11.708 5.3854
44 5.7737 2.4406
45 7.8247 6.7318
46 7.0931 1.0463
47 5.0702 5.1337
48 5.8014 1.844
49 11.7 8.0043
50 5.5416 1.0179
51 7.5402 6.7504
52 5.3077 1.8396
53 7.4239 4.2885
54 7.6031 4.9981
55 6.3328 1.4233
56 6.3589 -1.4211
57 6.2742 2.4756
58 5.6397 4.6042
59 9.3102 3.9624
60 9.4536 5.4141
61 8.8254 5.1694
62 5.1793 -0.74279
63 21.279 17.929
64 14.908 12.054
65 18.959 17.054
66 7.2182 4.8852
67 8.2951 5.7442
68 10.236 7.7754
69 5.4994 1.0173
70 20.341 20.992
71 10.136 6.6799
72 7.3345 4.0259
73 6.0062 1.2784
74 7.2259 3.3411
75 5.0269 -2.6807
76 6.5479 0.29678
77 7.5386 3.8845
78 5.0365 5.7014
79 10.274 6.7526
80 5.1077 2.0576
81 5.7292 0.47953
82 5.1884 0.20421
83 6.3557 0.67861
84 9.7687 7.5435
85 6.5159 5.3436
86 8.5172 4.2415
87 9.1802 6.7981
88 6.002 0.92695
89 5.5204 0.152
90 5.0594 2.8214
91 5.7077 1.8451
92 7.6366 4.2959
93 5.8707 7.2029
94 5.3054 1.9869
95 8.2934 0.14454
96 13.394 9.0551
97 5.4369 0.61705

1675
w2/data_flats.tsv Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

118
w2/ex2data2.txt Normal file
View File

@ -0,0 +1,118 @@
0.051267,0.69956,1
-0.092742,0.68494,1
-0.21371,0.69225,1
-0.375,0.50219,1
-0.51325,0.46564,1
-0.52477,0.2098,1
-0.39804,0.034357,1
-0.30588,-0.19225,1
0.016705,-0.40424,1
0.13191,-0.51389,1
0.38537,-0.56506,1
0.52938,-0.5212,1
0.63882,-0.24342,1
0.73675,-0.18494,1
0.54666,0.48757,1
0.322,0.5826,1
0.16647,0.53874,1
-0.046659,0.81652,1
-0.17339,0.69956,1
-0.47869,0.63377,1
-0.60541,0.59722,1
-0.62846,0.33406,1
-0.59389,0.005117,1
-0.42108,-0.27266,1
-0.11578,-0.39693,1
0.20104,-0.60161,1
0.46601,-0.53582,1
0.67339,-0.53582,1
-0.13882,0.54605,1
-0.29435,0.77997,1
-0.26555,0.96272,1
-0.16187,0.8019,1
-0.17339,0.64839,1
-0.28283,0.47295,1
-0.36348,0.31213,1
-0.30012,0.027047,1
-0.23675,-0.21418,1
-0.06394,-0.18494,1
0.062788,-0.16301,1
0.22984,-0.41155,1
0.2932,-0.2288,1
0.48329,-0.18494,1
0.64459,-0.14108,1
0.46025,0.012427,1
0.6273,0.15863,1
0.57546,0.26827,1
0.72523,0.44371,1
0.22408,0.52412,1
0.44297,0.67032,1
0.322,0.69225,1
0.13767,0.57529,1
-0.0063364,0.39985,1
-0.092742,0.55336,1
-0.20795,0.35599,1
-0.20795,0.17325,1
-0.43836,0.21711,1
-0.21947,-0.016813,1
-0.13882,-0.27266,1
0.18376,0.93348,0
0.22408,0.77997,0
0.29896,0.61915,0
0.50634,0.75804,0
0.61578,0.7288,0
0.60426,0.59722,0
0.76555,0.50219,0
0.92684,0.3633,0
0.82316,0.27558,0
0.96141,0.085526,0
0.93836,0.012427,0
0.86348,-0.082602,0
0.89804,-0.20687,0
0.85196,-0.36769,0
0.82892,-0.5212,0
0.79435,-0.55775,0
0.59274,-0.7405,0
0.51786,-0.5943,0
0.46601,-0.41886,0
0.35081,-0.57968,0
0.28744,-0.76974,0
0.085829,-0.75512,0
0.14919,-0.57968,0
-0.13306,-0.4481,0
-0.40956,-0.41155,0
-0.39228,-0.25804,0
-0.74366,-0.25804,0
-0.69758,0.041667,0
-0.75518,0.2902,0
-0.69758,0.68494,0
-0.4038,0.70687,0
-0.38076,0.91886,0
-0.50749,0.90424,0
-0.54781,0.70687,0
0.10311,0.77997,0
0.057028,0.91886,0
-0.10426,0.99196,0
-0.081221,1.1089,0
0.28744,1.087,0
0.39689,0.82383,0
0.63882,0.88962,0
0.82316,0.66301,0
0.67339,0.64108,0
1.0709,0.10015,0
-0.046659,-0.57968,0
-0.23675,-0.63816,0
-0.15035,-0.36769,0
-0.49021,-0.3019,0
-0.46717,-0.13377,0
-0.28859,-0.060673,0
-0.61118,-0.067982,0
-0.66302,-0.21418,0
-0.59965,-0.41886,0
-0.72638,-0.082602,0
-0.83007,0.31213,0
-0.72062,0.53874,0
-0.59389,0.49488,0
-0.48445,0.99927,0
-0.0063364,0.99927,0
0.63265,-0.030612,0

BIN
w2/fit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

151
w2/iris.csv Normal file
View File

@ -0,0 +1,151 @@
sl,sw,pl,pw,Gatunek
5.2,3.4,1.4,0.2,Iris-setosa
5.1,3.7,1.5,0.4,Iris-setosa
6.7,3.1,5.6,2.4,Iris-virginica
6.5,3.2,5.1,2.0,Iris-virginica
4.9,2.5,4.5,1.7,Iris-virginica
6.0,2.7,5.1,1.6,Iris-versicolor
5.7,2.6,3.5,1.0,Iris-versicolor
5.0,2.0,3.5,1.0,Iris-versicolor
5.2,3.5,1.5,0.2,Iris-setosa
4.8,3.0,1.4,0.1,Iris-setosa
6.7,3.3,5.7,2.5,Iris-virginica
6.1,3.0,4.9,1.8,Iris-virginica
4.8,3.4,1.9,0.2,Iris-setosa
5.8,2.8,5.1,2.4,Iris-virginica
4.4,2.9,1.4,0.2,Iris-setosa
7.2,3.0,5.8,1.6,Iris-virginica
4.4,3.2,1.3,0.2,Iris-setosa
5.0,3.5,1.3,0.3,Iris-setosa
5.4,3.9,1.3,0.4,Iris-setosa
7.7,2.8,6.7,2.0,Iris-virginica
5.0,3.6,1.4,0.2,Iris-setosa
6.2,2.8,4.8,1.8,Iris-virginica
6.0,2.2,5.0,1.5,Iris-virginica
7.4,2.8,6.1,1.9,Iris-virginica
5.0,3.2,1.2,0.2,Iris-setosa
6.7,3.1,4.4,1.4,Iris-versicolor
6.7,3.1,4.7,1.5,Iris-versicolor
5.6,2.7,4.2,1.3,Iris-versicolor
5.6,2.5,3.9,1.1,Iris-versicolor
6.3,3.3,4.7,1.6,Iris-versicolor
5.1,3.4,1.5,0.2,Iris-setosa
6.0,2.9,4.5,1.5,Iris-versicolor
5.3,3.7,1.5,0.2,Iris-setosa
5.6,2.9,3.6,1.3,Iris-versicolor
5.5,2.5,4.0,1.3,Iris-versicolor
5.5,2.4,3.7,1.0,Iris-versicolor
4.4,3.0,1.3,0.2,Iris-setosa
6.6,3.0,4.4,1.4,Iris-versicolor
7.9,3.8,6.4,2.0,Iris-virginica
5.7,2.8,4.1,1.3,Iris-versicolor
5.8,2.7,4.1,1.0,Iris-versicolor
6.5,2.8,4.6,1.5,Iris-versicolor
6.1,2.8,4.7,1.2,Iris-versicolor
5.1,3.8,1.9,0.4,Iris-setosa
5.0,3.4,1.6,0.4,Iris-setosa
5.5,2.6,4.4,1.2,Iris-versicolor
5.0,3.4,1.5,0.2,Iris-setosa
6.8,2.8,4.8,1.4,Iris-versicolor
6.9,3.1,4.9,1.5,Iris-versicolor
6.1,2.9,4.7,1.4,Iris-versicolor
5.1,3.8,1.6,0.2,Iris-setosa
6.4,3.2,5.3,2.3,Iris-virginica
6.4,2.7,5.3,1.9,Iris-virginica
5.7,2.8,4.5,1.3,Iris-versicolor
5.8,2.6,4.0,1.2,Iris-versicolor
4.7,3.2,1.6,0.2,Iris-setosa
5.1,3.3,1.7,0.5,Iris-setosa
4.9,3.1,1.5,0.1,Iris-setosa
6.3,3.4,5.6,2.4,Iris-virginica
5.1,3.8,1.5,0.3,Iris-setosa
7.0,3.2,4.7,1.4,Iris-versicolor
5.4,3.0,4.5,1.5,Iris-versicolor
6.0,2.2,4.0,1.0,Iris-versicolor
6.0,3.0,4.8,1.8,Iris-virginica
6.2,2.9,4.3,1.3,Iris-versicolor
5.6,3.0,4.1,1.3,Iris-versicolor
4.9,3.0,1.4,0.2,Iris-setosa
5.0,2.3,3.3,1.0,Iris-versicolor
6.3,2.5,5.0,1.9,Iris-virginica
4.8,3.4,1.6,0.2,Iris-setosa
5.9,3.0,4.2,1.5,Iris-versicolor
4.6,3.6,1.0,0.2,Iris-setosa
5.0,3.5,1.6,0.6,Iris-setosa
5.7,4.4,1.5,0.4,Iris-setosa
5.0,3.0,1.6,0.2,Iris-setosa
5.6,3.0,4.5,1.5,Iris-versicolor
6.3,2.8,5.1,1.5,Iris-virginica
5.2,2.7,3.9,1.4,Iris-versicolor
5.9,3.2,4.8,1.8,Iris-versicolor
7.7,3.0,6.1,2.3,Iris-virginica
6.2,3.4,5.4,2.3,Iris-virginica
6.4,2.9,4.3,1.3,Iris-versicolor
6.5,3.0,5.5,1.8,Iris-virginica
5.8,2.7,5.1,1.9,Iris-virginica
6.9,3.2,5.7,2.3,Iris-virginica
6.4,2.8,5.6,2.2,Iris-virginica
4.7,3.2,1.3,0.2,Iris-setosa
5.5,2.4,3.8,1.1,Iris-versicolor
5.4,3.4,1.5,0.4,Iris-setosa
7.2,3.6,6.1,2.5,Iris-virginica
6.7,2.5,5.8,1.8,Iris-virginica
6.1,3.0,4.6,1.4,Iris-versicolor
6.0,3.4,4.5,1.6,Iris-versicolor
6.3,2.7,4.9,1.8,Iris-virginica
6.9,3.1,5.1,2.3,Iris-virginica
5.5,3.5,1.3,0.2,Iris-setosa
6.7,3.0,5.2,2.3,Iris-virginica
4.6,3.1,1.5,0.2,Iris-setosa
5.8,2.7,5.1,1.9,Iris-virginica
6.4,3.1,5.5,1.8,Iris-virginica
7.3,2.9,6.3,1.8,Iris-virginica
4.8,3.0,1.4,0.3,Iris-setosa
7.1,3.0,5.9,2.1,Iris-virginica
5.9,3.0,5.1,1.8,Iris-virginica
6.1,2.6,5.6,1.4,Iris-virginica
5.4,3.9,1.7,0.4,Iris-setosa
6.4,3.2,4.5,1.5,Iris-versicolor
5.1,2.5,3.0,1.1,Iris-versicolor
6.3,2.9,5.6,1.8,Iris-virginica
7.2,3.2,6.0,1.8,Iris-virginica
5.4,3.4,1.7,0.2,Iris-setosa
4.6,3.2,1.4,0.2,Iris-setosa
6.1,2.8,4.0,1.3,Iris-versicolor
7.7,3.8,6.7,2.2,Iris-virginica
5.7,2.9,4.2,1.3,Iris-versicolor
5.1,3.5,1.4,0.2,Iris-setosa
4.9,3.1,1.5,0.1,Iris-setosa
6.5,3.0,5.2,2.0,Iris-virginica
4.9,3.1,1.5,0.1,Iris-setosa
6.3,2.3,4.4,1.3,Iris-versicolor
6.2,2.2,4.5,1.5,Iris-versicolor
5.7,3.8,1.7,0.3,Iris-setosa
6.4,2.8,5.6,2.1,Iris-virginica
4.9,2.4,3.3,1.0,Iris-versicolor
5.7,2.5,5.0,2.0,Iris-virginica
5.5,4.2,1.4,0.2,Iris-setosa
6.7,3.0,5.0,1.7,Iris-versicolor
5.0,3.3,1.4,0.2,Iris-setosa
6.3,2.5,4.9,1.5,Iris-versicolor
5.4,3.7,1.5,0.2,Iris-setosa
7.7,2.6,6.9,2.3,Iris-virginica
5.7,3.0,4.2,1.2,Iris-versicolor
7.6,3.0,6.6,2.1,Iris-virginica
4.8,3.1,1.6,0.2,Iris-setosa
5.6,2.8,4.9,2.0,Iris-virginica
4.5,2.3,1.3,0.3,Iris-setosa
6.8,3.2,5.9,2.3,Iris-virginica
6.3,3.3,6.0,2.5,Iris-virginica
4.6,3.4,1.4,0.3,Iris-setosa
5.8,2.7,3.9,1.2,Iris-versicolor
5.5,2.3,4.0,1.3,Iris-versicolor
5.2,4.1,1.5,0.1,Iris-setosa
6.6,2.9,4.6,1.3,Iris-versicolor
4.3,3.0,1.1,0.1,Iris-setosa
6.8,3.0,5.5,2.1,Iris-virginica
5.8,4.0,1.2,0.2,Iris-setosa
5.1,3.5,1.4,0.3,Iris-setosa
6.5,3.0,5.8,2.2,Iris-virginica
6.9,3.1,5.4,2.1,Iris-virginica
6.7,3.3,5.7,2.1,Iris-virginica
1 sl sw pl pw Gatunek
2 5.2 3.4 1.4 0.2 Iris-setosa
3 5.1 3.7 1.5 0.4 Iris-setosa
4 6.7 3.1 5.6 2.4 Iris-virginica
5 6.5 3.2 5.1 2.0 Iris-virginica
6 4.9 2.5 4.5 1.7 Iris-virginica
7 6.0 2.7 5.1 1.6 Iris-versicolor
8 5.7 2.6 3.5 1.0 Iris-versicolor
9 5.0 2.0 3.5 1.0 Iris-versicolor
10 5.2 3.5 1.5 0.2 Iris-setosa
11 4.8 3.0 1.4 0.1 Iris-setosa
12 6.7 3.3 5.7 2.5 Iris-virginica
13 6.1 3.0 4.9 1.8 Iris-virginica
14 4.8 3.4 1.9 0.2 Iris-setosa
15 5.8 2.8 5.1 2.4 Iris-virginica
16 4.4 2.9 1.4 0.2 Iris-setosa
17 7.2 3.0 5.8 1.6 Iris-virginica
18 4.4 3.2 1.3 0.2 Iris-setosa
19 5.0 3.5 1.3 0.3 Iris-setosa
20 5.4 3.9 1.3 0.4 Iris-setosa
21 7.7 2.8 6.7 2.0 Iris-virginica
22 5.0 3.6 1.4 0.2 Iris-setosa
23 6.2 2.8 4.8 1.8 Iris-virginica
24 6.0 2.2 5.0 1.5 Iris-virginica
25 7.4 2.8 6.1 1.9 Iris-virginica
26 5.0 3.2 1.2 0.2 Iris-setosa
27 6.7 3.1 4.4 1.4 Iris-versicolor
28 6.7 3.1 4.7 1.5 Iris-versicolor
29 5.6 2.7 4.2 1.3 Iris-versicolor
30 5.6 2.5 3.9 1.1 Iris-versicolor
31 6.3 3.3 4.7 1.6 Iris-versicolor
32 5.1 3.4 1.5 0.2 Iris-setosa
33 6.0 2.9 4.5 1.5 Iris-versicolor
34 5.3 3.7 1.5 0.2 Iris-setosa
35 5.6 2.9 3.6 1.3 Iris-versicolor
36 5.5 2.5 4.0 1.3 Iris-versicolor
37 5.5 2.4 3.7 1.0 Iris-versicolor
38 4.4 3.0 1.3 0.2 Iris-setosa
39 6.6 3.0 4.4 1.4 Iris-versicolor
40 7.9 3.8 6.4 2.0 Iris-virginica
41 5.7 2.8 4.1 1.3 Iris-versicolor
42 5.8 2.7 4.1 1.0 Iris-versicolor
43 6.5 2.8 4.6 1.5 Iris-versicolor
44 6.1 2.8 4.7 1.2 Iris-versicolor
45 5.1 3.8 1.9 0.4 Iris-setosa
46 5.0 3.4 1.6 0.4 Iris-setosa
47 5.5 2.6 4.4 1.2 Iris-versicolor
48 5.0 3.4 1.5 0.2 Iris-setosa
49 6.8 2.8 4.8 1.4 Iris-versicolor
50 6.9 3.1 4.9 1.5 Iris-versicolor
51 6.1 2.9 4.7 1.4 Iris-versicolor
52 5.1 3.8 1.6 0.2 Iris-setosa
53 6.4 3.2 5.3 2.3 Iris-virginica
54 6.4 2.7 5.3 1.9 Iris-virginica
55 5.7 2.8 4.5 1.3 Iris-versicolor
56 5.8 2.6 4.0 1.2 Iris-versicolor
57 4.7 3.2 1.6 0.2 Iris-setosa
58 5.1 3.3 1.7 0.5 Iris-setosa
59 4.9 3.1 1.5 0.1 Iris-setosa
60 6.3 3.4 5.6 2.4 Iris-virginica
61 5.1 3.8 1.5 0.3 Iris-setosa
62 7.0 3.2 4.7 1.4 Iris-versicolor
63 5.4 3.0 4.5 1.5 Iris-versicolor
64 6.0 2.2 4.0 1.0 Iris-versicolor
65 6.0 3.0 4.8 1.8 Iris-virginica
66 6.2 2.9 4.3 1.3 Iris-versicolor
67 5.6 3.0 4.1 1.3 Iris-versicolor
68 4.9 3.0 1.4 0.2 Iris-setosa
69 5.0 2.3 3.3 1.0 Iris-versicolor
70 6.3 2.5 5.0 1.9 Iris-virginica
71 4.8 3.4 1.6 0.2 Iris-setosa
72 5.9 3.0 4.2 1.5 Iris-versicolor
73 4.6 3.6 1.0 0.2 Iris-setosa
74 5.0 3.5 1.6 0.6 Iris-setosa
75 5.7 4.4 1.5 0.4 Iris-setosa
76 5.0 3.0 1.6 0.2 Iris-setosa
77 5.6 3.0 4.5 1.5 Iris-versicolor
78 6.3 2.8 5.1 1.5 Iris-virginica
79 5.2 2.7 3.9 1.4 Iris-versicolor
80 5.9 3.2 4.8 1.8 Iris-versicolor
81 7.7 3.0 6.1 2.3 Iris-virginica
82 6.2 3.4 5.4 2.3 Iris-virginica
83 6.4 2.9 4.3 1.3 Iris-versicolor
84 6.5 3.0 5.5 1.8 Iris-virginica
85 5.8 2.7 5.1 1.9 Iris-virginica
86 6.9 3.2 5.7 2.3 Iris-virginica
87 6.4 2.8 5.6 2.2 Iris-virginica
88 4.7 3.2 1.3 0.2 Iris-setosa
89 5.5 2.4 3.8 1.1 Iris-versicolor
90 5.4 3.4 1.5 0.4 Iris-setosa
91 7.2 3.6 6.1 2.5 Iris-virginica
92 6.7 2.5 5.8 1.8 Iris-virginica
93 6.1 3.0 4.6 1.4 Iris-versicolor
94 6.0 3.4 4.5 1.6 Iris-versicolor
95 6.3 2.7 4.9 1.8 Iris-virginica
96 6.9 3.1 5.1 2.3 Iris-virginica
97 5.5 3.5 1.3 0.2 Iris-setosa
98 6.7 3.0 5.2 2.3 Iris-virginica
99 4.6 3.1 1.5 0.2 Iris-setosa
100 5.8 2.7 5.1 1.9 Iris-virginica
101 6.4 3.1 5.5 1.8 Iris-virginica
102 7.3 2.9 6.3 1.8 Iris-virginica
103 4.8 3.0 1.4 0.3 Iris-setosa
104 7.1 3.0 5.9 2.1 Iris-virginica
105 5.9 3.0 5.1 1.8 Iris-virginica
106 6.1 2.6 5.6 1.4 Iris-virginica
107 5.4 3.9 1.7 0.4 Iris-setosa
108 6.4 3.2 4.5 1.5 Iris-versicolor
109 5.1 2.5 3.0 1.1 Iris-versicolor
110 6.3 2.9 5.6 1.8 Iris-virginica
111 7.2 3.2 6.0 1.8 Iris-virginica
112 5.4 3.4 1.7 0.2 Iris-setosa
113 4.6 3.2 1.4 0.2 Iris-setosa
114 6.1 2.8 4.0 1.3 Iris-versicolor
115 7.7 3.8 6.7 2.2 Iris-virginica
116 5.7 2.9 4.2 1.3 Iris-versicolor
117 5.1 3.5 1.4 0.2 Iris-setosa
118 4.9 3.1 1.5 0.1 Iris-setosa
119 6.5 3.0 5.2 2.0 Iris-virginica
120 4.9 3.1 1.5 0.1 Iris-setosa
121 6.3 2.3 4.4 1.3 Iris-versicolor
122 6.2 2.2 4.5 1.5 Iris-versicolor
123 5.7 3.8 1.7 0.3 Iris-setosa
124 6.4 2.8 5.6 2.1 Iris-virginica
125 4.9 2.4 3.3 1.0 Iris-versicolor
126 5.7 2.5 5.0 2.0 Iris-virginica
127 5.5 4.2 1.4 0.2 Iris-setosa
128 6.7 3.0 5.0 1.7 Iris-versicolor
129 5.0 3.3 1.4 0.2 Iris-setosa
130 6.3 2.5 4.9 1.5 Iris-versicolor
131 5.4 3.7 1.5 0.2 Iris-setosa
132 7.7 2.6 6.9 2.3 Iris-virginica
133 5.7 3.0 4.2 1.2 Iris-versicolor
134 7.6 3.0 6.6 2.1 Iris-virginica
135 4.8 3.1 1.6 0.2 Iris-setosa
136 5.6 2.8 4.9 2.0 Iris-virginica
137 4.5 2.3 1.3 0.3 Iris-setosa
138 6.8 3.2 5.9 2.3 Iris-virginica
139 6.3 3.3 6.0 2.5 Iris-virginica
140 4.6 3.4 1.4 0.3 Iris-setosa
141 5.8 2.7 3.9 1.2 Iris-versicolor
142 5.5 2.3 4.0 1.3 Iris-versicolor
143 5.2 4.1 1.5 0.1 Iris-setosa
144 6.6 2.9 4.6 1.3 Iris-versicolor
145 4.3 3.0 1.1 0.1 Iris-setosa
146 6.8 3.0 5.5 2.1 Iris-virginica
147 5.8 4.0 1.2 0.2 Iris-setosa
148 5.1 3.5 1.4 0.3 Iris-setosa
149 6.5 3.0 5.8 2.2 Iris-virginica
150 6.9 3.1 5.4 2.1 Iris-virginica
151 6.7 3.3 5.7 2.1 Iris-virginica

BIN
w2/learning-curves.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

100
w2/polynomial_logistic.tsv Normal file
View File

@ -0,0 +1,100 @@
1 0.25777005758108174 0.601012316037165
1 0.3659669567447452 -0.11214686303429633
0 0.49453050141627375 0.47110655546911206
0 0.7029060372914113 -0.9225798301680093
0 0.46658862037642423 -0.6226973935055724
0 0.8793946243263941 -0.11408014657778076
0 -0.3311850002119068 0.8444766749977881
0 -0.5435170087333634 0.8851383010436487
0 0.9197924083397226 0.41607011737177735
0 0.28011742147804797 0.6143115673056148
0 0.9475436344725683 -0.7830731144606005
0 0.4904989452188586 0.649356142549592
0 -0.865983500565505 0.9896361556274065
0 -0.8579184997717257 0.3062253122060574
0 0.08082005095746103 -0.7736760810964189
0 -0.3363842450225085 -0.8802992880290186
0 0.4748472924067402 0.9756949850919965
0 -0.7956979203895616 0.8751067723304518
1 0.06752895667287606 -0.7683056187589332
0 -0.5825898275446799 0.8068359661366173
1 0.1109238791315652 -0.2034825016864903
0 0.5011542085506828 0.9366868642789181
0 0.2011359606302785 0.4800561245801245
1 -0.38620580274071115 0.4003933803256208
1 -0.1722113915778094 0.3926707935387965
0 0.6575404624823169 -0.7070032890943085
1 -0.2832309098070882 0.034184675674787446
1 -0.16828017341376333 -0.1628482245819587
0 -0.6552618226108893 -0.3159705063754401
0 -0.6466772083696701 -0.07116372625398881
0 0.848711325640519 0.2132898335742659
1 -0.35490315474701606 -0.0025105634256454845
0 -0.36568446532837817 0.5637325774329354
0 -0.5089179414092766 0.8086671779253405
0 0.9609295951994559 -0.12114542304082354
0 0.055563338045806265 0.8532855304613407
0 -0.8937129542754998 -0.02555660184206876
0 0.40678784672410284 -0.5480665560665205
0 -0.7683896050204841 0.9475293644451854
0 -0.515467982993429 -0.5389177617277066
0 0.9693903475176826 -0.9765032993967369
0 -0.5476549714934908 -0.018838768427513974
0 0.5262277827151787 -0.9936327305281174
1 0.9394838829593151 0.9962891110157359
0 -0.935709119652979 -0.6940925482964921
0 0.6161569745665239 -0.044448545050667976
0 -0.08521587367561922 0.9636255303204684
0 0.9073344675416231 -0.08813265618067079
1 -0.1563237189794715 0.05022859605451302
0 -0.9785642881644829 -0.5076719844587916
0 -0.5494648865481802 -0.6044852696776528
0 -0.7170122682018529 -0.6250685449461151
1 0.5333872877810009 0.1395189003073396
0 -0.49270328980187905 0.9081426529064955
1 0.07777642690144848 -0.44188199856981347
0 0.8328452661100116 0.5508441451500428
1 -0.33275827507477573 -0.15434344174028314
0 -0.9057550401714867 0.6324599729071743
0 -0.8476574433184823 0.5739140088331203
0 -0.37393930555231103 0.7361874446899226
1 0.6610910543790163 0.0036185958785315275
0 0.49147748571126004 -0.6155167984371757
0 0.31992462553488177 -0.38253832622755657
0 0.7398386519468336 -0.915886088774648
0 0.5915392280694003 0.011422405850611383
0 -0.5818860867200502 -0.44086037005029377
0 -0.9066322824076023 0.21754010215910524
1 0.12243932470792318 -0.3830697406526009
0 0.40607941790742297 0.5626829623336307
1 -0.1210920179663808 -0.20552144405177608
0 0.48099006522554233 0.9583656149315158
0 -0.059491720260914205 0.6161097510891897
1 -0.053220979060695006 0.07562497263502688
0 -0.8742304482942296 -0.13488952315510616
0 0.7362712712103594 0.6087347685508093
0 0.025549937023763736 -0.6202087182389777
0 0.6755333538371804 0.7047713746899604
0 -0.3954771867034055 0.3567082570178153
1 0.24896928809009156 -0.17106278785061302
0 0.6133735778535989 -0.6297261231852487
1 -0.35955189872833593 -0.2086164112593747
0 0.646544898896497 0.8858921579510579
0 0.6459228334265068 -0.9141274779126995
0 -0.5279127041052518 -0.11119649758918437
0 -0.47141090620857784 -0.29849889702571786
1 0.1901970467567704 -0.5049996808415897
0 -0.5497623652380574 -0.49032403671408553
0 -0.5759454285366339 0.445122514716527
0 -0.7800687910859982 -0.4823078816937112
0 0.39722150362989095 0.5827352140491311
1 0.018540458464545218 -0.20805328372207677
0 -0.14419638252986933 -0.8679481460173017
1 -0.15012196110925857 0.5474017473230433
1 -0.11028545705088533 0.5371497474265077
0 -0.46577855502057375 -0.9226883886539352
0 0.4843595022265692 0.47692504895620713
0 0.4330264545403766 -0.40096944878062857
0 -0.7401024435876022 0.758623363044544
0 0.20470935356917574 -0.7551473328272353
0 0.1877078820888327 -0.3377139504156679
1 1 0.25777005758108174 0.601012316037165
2 1 0.3659669567447452 -0.11214686303429633
3 0 0.49453050141627375 0.47110655546911206
4 0 0.7029060372914113 -0.9225798301680093
5 0 0.46658862037642423 -0.6226973935055724
6 0 0.8793946243263941 -0.11408014657778076
7 0 -0.3311850002119068 0.8444766749977881
8 0 -0.5435170087333634 0.8851383010436487
9 0 0.9197924083397226 0.41607011737177735
10 0 0.28011742147804797 0.6143115673056148
11 0 0.9475436344725683 -0.7830731144606005
12 0 0.4904989452188586 0.649356142549592
13 0 -0.865983500565505 0.9896361556274065
14 0 -0.8579184997717257 0.3062253122060574
15 0 0.08082005095746103 -0.7736760810964189
16 0 -0.3363842450225085 -0.8802992880290186
17 0 0.4748472924067402 0.9756949850919965
18 0 -0.7956979203895616 0.8751067723304518
19 1 0.06752895667287606 -0.7683056187589332
20 0 -0.5825898275446799 0.8068359661366173
21 1 0.1109238791315652 -0.2034825016864903
22 0 0.5011542085506828 0.9366868642789181
23 0 0.2011359606302785 0.4800561245801245
24 1 -0.38620580274071115 0.4003933803256208
25 1 -0.1722113915778094 0.3926707935387965
26 0 0.6575404624823169 -0.7070032890943085
27 1 -0.2832309098070882 0.034184675674787446
28 1 -0.16828017341376333 -0.1628482245819587
29 0 -0.6552618226108893 -0.3159705063754401
30 0 -0.6466772083696701 -0.07116372625398881
31 0 0.848711325640519 0.2132898335742659
32 1 -0.35490315474701606 -0.0025105634256454845
33 0 -0.36568446532837817 0.5637325774329354
34 0 -0.5089179414092766 0.8086671779253405
35 0 0.9609295951994559 -0.12114542304082354
36 0 0.055563338045806265 0.8532855304613407
37 0 -0.8937129542754998 -0.02555660184206876
38 0 0.40678784672410284 -0.5480665560665205
39 0 -0.7683896050204841 0.9475293644451854
40 0 -0.515467982993429 -0.5389177617277066
41 0 0.9693903475176826 -0.9765032993967369
42 0 -0.5476549714934908 -0.018838768427513974
43 0 0.5262277827151787 -0.9936327305281174
44 1 0.9394838829593151 0.9962891110157359
45 0 -0.935709119652979 -0.6940925482964921
46 0 0.6161569745665239 -0.044448545050667976
47 0 -0.08521587367561922 0.9636255303204684
48 0 0.9073344675416231 -0.08813265618067079
49 1 -0.1563237189794715 0.05022859605451302
50 0 -0.9785642881644829 -0.5076719844587916
51 0 -0.5494648865481802 -0.6044852696776528
52 0 -0.7170122682018529 -0.6250685449461151
53 1 0.5333872877810009 0.1395189003073396
54 0 -0.49270328980187905 0.9081426529064955
55 1 0.07777642690144848 -0.44188199856981347
56 0 0.8328452661100116 0.5508441451500428
57 1 -0.33275827507477573 -0.15434344174028314
58 0 -0.9057550401714867 0.6324599729071743
59 0 -0.8476574433184823 0.5739140088331203
60 0 -0.37393930555231103 0.7361874446899226
61 1 0.6610910543790163 0.0036185958785315275
62 0 0.49147748571126004 -0.6155167984371757
63 0 0.31992462553488177 -0.38253832622755657
64 0 0.7398386519468336 -0.915886088774648
65 0 0.5915392280694003 0.011422405850611383
66 0 -0.5818860867200502 -0.44086037005029377
67 0 -0.9066322824076023 0.21754010215910524
68 1 0.12243932470792318 -0.3830697406526009
69 0 0.40607941790742297 0.5626829623336307
70 1 -0.1210920179663808 -0.20552144405177608
71 0 0.48099006522554233 0.9583656149315158
72 0 -0.059491720260914205 0.6161097510891897
73 1 -0.053220979060695006 0.07562497263502688
74 0 -0.8742304482942296 -0.13488952315510616
75 0 0.7362712712103594 0.6087347685508093
76 0 0.025549937023763736 -0.6202087182389777
77 0 0.6755333538371804 0.7047713746899604
78 0 -0.3954771867034055 0.3567082570178153
79 1 0.24896928809009156 -0.17106278785061302
80 0 0.6133735778535989 -0.6297261231852487
81 1 -0.35955189872833593 -0.2086164112593747
82 0 0.646544898896497 0.8858921579510579
83 0 0.6459228334265068 -0.9141274779126995
84 0 -0.5279127041052518 -0.11119649758918437
85 0 -0.47141090620857784 -0.29849889702571786
86 1 0.1901970467567704 -0.5049996808415897
87 0 -0.5497623652380574 -0.49032403671408553
88 0 -0.5759454285366339 0.445122514716527
89 0 -0.7800687910859982 -0.4823078816937112
90 0 0.39722150362989095 0.5827352140491311
91 1 0.018540458464545218 -0.20805328372207677
92 0 -0.14419638252986933 -0.8679481460173017
93 1 -0.15012196110925857 0.5474017473230433
94 1 -0.11028545705088533 0.5371497474265077
95 0 -0.46577855502057375 -0.9226883886539352
96 0 0.4843595022265692 0.47692504895620713
97 0 0.4330264545403766 -0.40096944878062857
98 0 -0.7401024435876022 0.758623363044544
99 0 0.20470935356917574 -0.7551473328272353
100 0 0.1877078820888327 -0.3377139504156679

BIN
w2/zumz182.zip Normal file

Binary file not shown.

23080
w2/zumz182a.ipynb Normal file

File diff suppressed because it is too large Load Diff

BIN
w2/zumz182a.pdf Normal file

Binary file not shown.

1921
w2/zumz182b.ipynb Normal file

File diff suppressed because one or more lines are too long

BIN
w2/zumz182b.pdf Normal file

Binary file not shown.

100
w3/bayes_nasty.tsv Normal file
View File

@ -0,0 +1,100 @@
0 0.7544830909519196 -0.7557810097698512
0 -0.401040192413354 0.05087719368515575
0 -0.14557860894357444 -0.9167657103778997
0 0.15606723792840116 0.7049866105111644
0 0.595321005153232 -0.3993704503800295
0 -0.21608773803320203 -0.9473358133826528
1 -0.9991678089071083 -0.8203462932941652
0 -0.29270128006691776 0.8999761729296656
0 -0.3744408488491382 0.5298017577688894
0 -0.13262908466039347 0.016485142896286442
1 -0.45382240999178936 -0.6292411536948919
1 0.8466491727357144 0.7677619536810258
0 0.5640604742334225 -0.6415301955014154
1 0.7652661495157325 0.9042394673218532
0 0.027488607545269383 -0.8561480245619784
0 0.8937874814271918 -0.568262764805403
1 0.05865567400417637 0.1271824506485506
0 0.1350578652393759 -0.8468795247716823
0 -0.03351382194744046 0.7225677368658248
0 0.031698854294282874 -0.1745522030261808
0 0.9764007293531329 0.0407596854507819
1 0.8575290920021019 0.5995196615047915
1 -0.5942919380814724 -0.9173657127389143
0 0.019297633607670894 0.7171922933333184
0 0.23496958271638224 -0.4505947779446391
0 -0.15627176851413638 -0.6255991840738957
0 -0.5436468155122751 0.7321778365594638
0 -0.0016772778866704918 0.9953499312779903
0 -0.49022669174509304 0.7643365578090109
0 0.9274390975500406 -0.16941260003761904
0 0.517483672350449 -0.9259720728025793
0 0.4993683788149732 -0.8086741166111076
1 -0.8954705171891042 -0.8352780222016363
1 -0.35723728886723927 -0.6472670626320902
0 -0.45030919789416135 -0.014680291690282399
1 -0.3149222964035554 -0.2363491678998142
0 -0.21632030129179247 0.9937719759687991
0 -0.3479296178713067 0.7754592480508431
1 -0.39993029073188713 -0.4021302940990339
0 0.22575455897529628 0.914503661895917
0 0.7221094132486976 -0.07187829685579739
1 0.8767936705571608 0.9516806200255943
1 0.2252335689492453 0.7031994893573623
0 0.742017840295591 -0.19165119600215896
1 -0.18782565699518372 -0.1408083939313467
0 -0.8222264182672563 0.17050362212981707
0 -0.1701252998869296 0.3450076829291753
0 -0.7342893613133503 0.40778605218980135
0 0.042695758461734235 -0.1484132507659468
1 0.3863429870565578 0.1571106834539837
0 -0.015388135282204507 -0.3364073902228679
0 -0.8487467820993619 0.1089427832313854
1 -0.6329015029648661 -0.7736052613400564
1 -0.858908407978868 -0.7378977770454969
1 0.6990672273176652 0.9222225234574595
0 -0.256431985135285 0.5758502205935434
0 -0.17330338780141252 0.30560812863161035
1 0.3523362003038917 0.4815180921326969
0 -0.10269592106863401 -0.7847042700361848
1 0.2559692323662084 0.048849842553034595
0 -0.8044820701681799 0.504663314011591
0 0.07877786671385811 0.9947392835524949
0 -0.8828875946641657 0.39461445063748224
0 -0.5143275957869704 0.09502394806995929
1 -0.5268239422759475 -0.11354182377636213
0 0.2946171361928087 -0.3186572090869646
0 0.7198334843462129 -0.6141975273104947
1 0.48428859765324495 0.8946857548947542
0 0.4621095070919994 -0.8924571872043978
0 0.4528371532815365 -0.5807667653397828
0 -0.09742500656072872 0.4945581379995849
1 0.777026015997778 0.3617742992147488
0 0.7791679792171657 -0.9220886356412603
0 -0.38876810387659977 0.6679551419391372
0 -0.08472697987697475 0.275319596881203
0 0.7822926875136844 0.17122659901899606
1 -0.2657068543666481 -0.06008893404720328
0 -0.6907681316607532 -0.14224587305734304
0 0.8066439746610798 -0.4207539780920342
1 0.8552075324891362 0.08669568026253027
0 0.5491129985925067 -0.6071624569600662
0 -0.9629615870383108 0.5418486267009242
1 0.718585449653875 0.2289040416265995
0 0.7097096024915686 0.15142630204453789
0 0.001183772922738191 -0.21331149786657155
0 -0.740163182486073 0.7856137973272908
0 -0.4102935448809477 0.32577864184797
0 0.2838108153224279 0.6955863026175773
1 0.5260171668336517 0.31947619877005207
1 0.39165592038557273 0.5903048315964989
1 -0.5287850882839857 -0.709598294851151
0 0.8801802111481849 0.1257963822980257
0 0.7860399993656908 0.2917387997774099
0 -0.31357941345778184 0.8173465016744779
0 -0.24706729772892544 -0.5017567368968896
0 -0.5077834677535535 0.734692375238988
1 0.9180554343925105 0.7402607565839483
0 0.7347556198277827 -0.8922440369193774
0 0.05178553367177474 0.024867950728887367
0 0.6123243631772981 -0.9310030202911994
1 0 0.7544830909519196 -0.7557810097698512
2 0 -0.401040192413354 0.05087719368515575
3 0 -0.14557860894357444 -0.9167657103778997
4 0 0.15606723792840116 0.7049866105111644
5 0 0.595321005153232 -0.3993704503800295
6 0 -0.21608773803320203 -0.9473358133826528
7 1 -0.9991678089071083 -0.8203462932941652
8 0 -0.29270128006691776 0.8999761729296656
9 0 -0.3744408488491382 0.5298017577688894
10 0 -0.13262908466039347 0.016485142896286442
11 1 -0.45382240999178936 -0.6292411536948919
12 1 0.8466491727357144 0.7677619536810258
13 0 0.5640604742334225 -0.6415301955014154
14 1 0.7652661495157325 0.9042394673218532
15 0 0.027488607545269383 -0.8561480245619784
16 0 0.8937874814271918 -0.568262764805403
17 1 0.05865567400417637 0.1271824506485506
18 0 0.1350578652393759 -0.8468795247716823
19 0 -0.03351382194744046 0.7225677368658248
20 0 0.031698854294282874 -0.1745522030261808
21 0 0.9764007293531329 0.0407596854507819
22 1 0.8575290920021019 0.5995196615047915
23 1 -0.5942919380814724 -0.9173657127389143
24 0 0.019297633607670894 0.7171922933333184
25 0 0.23496958271638224 -0.4505947779446391
26 0 -0.15627176851413638 -0.6255991840738957
27 0 -0.5436468155122751 0.7321778365594638
28 0 -0.0016772778866704918 0.9953499312779903
29 0 -0.49022669174509304 0.7643365578090109
30 0 0.9274390975500406 -0.16941260003761904
31 0 0.517483672350449 -0.9259720728025793
32 0 0.4993683788149732 -0.8086741166111076
33 1 -0.8954705171891042 -0.8352780222016363
34 1 -0.35723728886723927 -0.6472670626320902
35 0 -0.45030919789416135 -0.014680291690282399
36 1 -0.3149222964035554 -0.2363491678998142
37 0 -0.21632030129179247 0.9937719759687991
38 0 -0.3479296178713067 0.7754592480508431
39 1 -0.39993029073188713 -0.4021302940990339
40 0 0.22575455897529628 0.914503661895917
41 0 0.7221094132486976 -0.07187829685579739
42 1 0.8767936705571608 0.9516806200255943
43 1 0.2252335689492453 0.7031994893573623
44 0 0.742017840295591 -0.19165119600215896
45 1 -0.18782565699518372 -0.1408083939313467
46 0 -0.8222264182672563 0.17050362212981707
47 0 -0.1701252998869296 0.3450076829291753
48 0 -0.7342893613133503 0.40778605218980135
49 0 0.042695758461734235 -0.1484132507659468
50 1 0.3863429870565578 0.1571106834539837
51 0 -0.015388135282204507 -0.3364073902228679
52 0 -0.8487467820993619 0.1089427832313854
53 1 -0.6329015029648661 -0.7736052613400564
54 1 -0.858908407978868 -0.7378977770454969
55 1 0.6990672273176652 0.9222225234574595
56 0 -0.256431985135285 0.5758502205935434
57 0 -0.17330338780141252 0.30560812863161035
58 1 0.3523362003038917 0.4815180921326969
59 0 -0.10269592106863401 -0.7847042700361848
60 1 0.2559692323662084 0.048849842553034595
61 0 -0.8044820701681799 0.504663314011591
62 0 0.07877786671385811 0.9947392835524949
63 0 -0.8828875946641657 0.39461445063748224
64 0 -0.5143275957869704 0.09502394806995929
65 1 -0.5268239422759475 -0.11354182377636213
66 0 0.2946171361928087 -0.3186572090869646
67 0 0.7198334843462129 -0.6141975273104947
68 1 0.48428859765324495 0.8946857548947542
69 0 0.4621095070919994 -0.8924571872043978
70 0 0.4528371532815365 -0.5807667653397828
71 0 -0.09742500656072872 0.4945581379995849
72 1 0.777026015997778 0.3617742992147488
73 0 0.7791679792171657 -0.9220886356412603
74 0 -0.38876810387659977 0.6679551419391372
75 0 -0.08472697987697475 0.275319596881203
76 0 0.7822926875136844 0.17122659901899606
77 1 -0.2657068543666481 -0.06008893404720328
78 0 -0.6907681316607532 -0.14224587305734304
79 0 0.8066439746610798 -0.4207539780920342
80 1 0.8552075324891362 0.08669568026253027
81 0 0.5491129985925067 -0.6071624569600662
82 0 -0.9629615870383108 0.5418486267009242
83 1 0.718585449653875 0.2289040416265995
84 0 0.7097096024915686 0.15142630204453789
85 0 0.001183772922738191 -0.21331149786657155
86 0 -0.740163182486073 0.7856137973272908
87 0 -0.4102935448809477 0.32577864184797
88 0 0.2838108153224279 0.6955863026175773
89 1 0.5260171668336517 0.31947619877005207
90 1 0.39165592038557273 0.5903048315964989
91 1 -0.5287850882839857 -0.709598294851151
92 0 0.8801802111481849 0.1257963822980257
93 0 0.7860399993656908 0.2917387997774099
94 0 -0.31357941345778184 0.8173465016744779
95 0 -0.24706729772892544 -0.5017567368968896
96 0 -0.5077834677535535 0.734692375238988
97 1 0.9180554343925105 0.7402607565839483
98 0 0.7347556198277827 -0.8922440369193774
99 0 0.05178553367177474 0.024867950728887367
100 0 0.6123243631772981 -0.9310030202911994

26
w3/create_bayes_nasty.py Normal file
View File

@ -0,0 +1,26 @@
#!/usr/bin/python3
# -*- coding:utf-8 -*-
import csv
import math
import random
import sys
def create_bayes_nasty_data(filename):
with open(filename, 'w') as f:
writer = csv.writer(
f, delimiter=('\t' if filename.endswith('.tsv') else ','))
for i in range(100):
x = random.uniform(-1.0, 1.0)
y = random.uniform(-1.0, 1.0)
p = abs(x-y) / abs(x+y)
# for i in range(2):
# p = -2 * p**3 + 3 * p**2
v = 1 if random.random() > p else 0
writer.writerow([v, x, y])
if __name__ == '__main__':
create_bayes_nasty_data(sys.argv[1])

151
w3/iris.csv Normal file
View File

@ -0,0 +1,151 @@
łod.dł.,łod.sz.,pł.dł.,pł.sz.,Gatunek
5.2,3.4,1.4,0.2,Iris-setosa
5.1,3.7,1.5,0.4,Iris-setosa
6.7,3.1,5.6,2.4,Iris-virginica
6.5,3.2,5.1,2.0,Iris-virginica
4.9,2.5,4.5,1.7,Iris-virginica
6.0,2.7,5.1,1.6,Iris-versicolor
5.7,2.6,3.5,1.0,Iris-versicolor
5.0,2.0,3.5,1.0,Iris-versicolor
5.2,3.5,1.5,0.2,Iris-setosa
4.8,3.0,1.4,0.1,Iris-setosa
6.7,3.3,5.7,2.5,Iris-virginica
6.1,3.0,4.9,1.8,Iris-virginica
4.8,3.4,1.9,0.2,Iris-setosa
5.8,2.8,5.1,2.4,Iris-virginica
4.4,2.9,1.4,0.2,Iris-setosa
7.2,3.0,5.8,1.6,Iris-virginica
4.4,3.2,1.3,0.2,Iris-setosa
5.0,3.5,1.3,0.3,Iris-setosa
5.4,3.9,1.3,0.4,Iris-setosa
7.7,2.8,6.7,2.0,Iris-virginica
5.0,3.6,1.4,0.2,Iris-setosa
6.2,2.8,4.8,1.8,Iris-virginica
6.0,2.2,5.0,1.5,Iris-virginica
7.4,2.8,6.1,1.9,Iris-virginica
5.0,3.2,1.2,0.2,Iris-setosa
6.7,3.1,4.4,1.4,Iris-versicolor
6.7,3.1,4.7,1.5,Iris-versicolor
5.6,2.7,4.2,1.3,Iris-versicolor
5.6,2.5,3.9,1.1,Iris-versicolor
6.3,3.3,4.7,1.6,Iris-versicolor
5.1,3.4,1.5,0.2,Iris-setosa
6.0,2.9,4.5,1.5,Iris-versicolor
5.3,3.7,1.5,0.2,Iris-setosa
5.6,2.9,3.6,1.3,Iris-versicolor
5.5,2.5,4.0,1.3,Iris-versicolor
5.5,2.4,3.7,1.0,Iris-versicolor
4.4,3.0,1.3,0.2,Iris-setosa
6.6,3.0,4.4,1.4,Iris-versicolor
7.9,3.8,6.4,2.0,Iris-virginica
5.7,2.8,4.1,1.3,Iris-versicolor
5.8,2.7,4.1,1.0,Iris-versicolor
6.5,2.8,4.6,1.5,Iris-versicolor
6.1,2.8,4.7,1.2,Iris-versicolor
5.1,3.8,1.9,0.4,Iris-setosa
5.0,3.4,1.6,0.4,Iris-setosa
5.5,2.6,4.4,1.2,Iris-versicolor
5.0,3.4,1.5,0.2,Iris-setosa
6.8,2.8,4.8,1.4,Iris-versicolor
6.9,3.1,4.9,1.5,Iris-versicolor
6.1,2.9,4.7,1.4,Iris-versicolor
5.1,3.8,1.6,0.2,Iris-setosa
6.4,3.2,5.3,2.3,Iris-virginica
6.4,2.7,5.3,1.9,Iris-virginica
5.7,2.8,4.5,1.3,Iris-versicolor
5.8,2.6,4.0,1.2,Iris-versicolor
4.7,3.2,1.6,0.2,Iris-setosa
5.1,3.3,1.7,0.5,Iris-setosa
4.9,3.1,1.5,0.1,Iris-setosa
6.3,3.4,5.6,2.4,Iris-virginica
5.1,3.8,1.5,0.3,Iris-setosa
7.0,3.2,4.7,1.4,Iris-versicolor
5.4,3.0,4.5,1.5,Iris-versicolor
6.0,2.2,4.0,1.0,Iris-versicolor
6.0,3.0,4.8,1.8,Iris-virginica
6.2,2.9,4.3,1.3,Iris-versicolor
5.6,3.0,4.1,1.3,Iris-versicolor
4.9,3.0,1.4,0.2,Iris-setosa
5.0,2.3,3.3,1.0,Iris-versicolor
6.3,2.5,5.0,1.9,Iris-virginica
4.8,3.4,1.6,0.2,Iris-setosa
5.9,3.0,4.2,1.5,Iris-versicolor
4.6,3.6,1.0,0.2,Iris-setosa
5.0,3.5,1.6,0.6,Iris-setosa
5.7,4.4,1.5,0.4,Iris-setosa
5.0,3.0,1.6,0.2,Iris-setosa
5.6,3.0,4.5,1.5,Iris-versicolor
6.3,2.8,5.1,1.5,Iris-virginica
5.2,2.7,3.9,1.4,Iris-versicolor
5.9,3.2,4.8,1.8,Iris-versicolor
7.7,3.0,6.1,2.3,Iris-virginica
6.2,3.4,5.4,2.3,Iris-virginica
6.4,2.9,4.3,1.3,Iris-versicolor
6.5,3.0,5.5,1.8,Iris-virginica
5.8,2.7,5.1,1.9,Iris-virginica
6.9,3.2,5.7,2.3,Iris-virginica
6.4,2.8,5.6,2.2,Iris-virginica
4.7,3.2,1.3,0.2,Iris-setosa
5.5,2.4,3.8,1.1,Iris-versicolor
5.4,3.4,1.5,0.4,Iris-setosa
7.2,3.6,6.1,2.5,Iris-virginica
6.7,2.5,5.8,1.8,Iris-virginica
6.1,3.0,4.6,1.4,Iris-versicolor
6.0,3.4,4.5,1.6,Iris-versicolor
6.3,2.7,4.9,1.8,Iris-virginica
6.9,3.1,5.1,2.3,Iris-virginica
5.5,3.5,1.3,0.2,Iris-setosa
6.7,3.0,5.2,2.3,Iris-virginica
4.6,3.1,1.5,0.2,Iris-setosa
5.8,2.7,5.1,1.9,Iris-virginica
6.4,3.1,5.5,1.8,Iris-virginica
7.3,2.9,6.3,1.8,Iris-virginica
4.8,3.0,1.4,0.3,Iris-setosa
7.1,3.0,5.9,2.1,Iris-virginica
5.9,3.0,5.1,1.8,Iris-virginica
6.1,2.6,5.6,1.4,Iris-virginica
5.4,3.9,1.7,0.4,Iris-setosa
6.4,3.2,4.5,1.5,Iris-versicolor
5.1,2.5,3.0,1.1,Iris-versicolor
6.3,2.9,5.6,1.8,Iris-virginica
7.2,3.2,6.0,1.8,Iris-virginica
5.4,3.4,1.7,0.2,Iris-setosa
4.6,3.2,1.4,0.2,Iris-setosa
6.1,2.8,4.0,1.3,Iris-versicolor
7.7,3.8,6.7,2.2,Iris-virginica
5.7,2.9,4.2,1.3,Iris-versicolor
5.1,3.5,1.4,0.2,Iris-setosa
4.9,3.1,1.5,0.1,Iris-setosa
6.5,3.0,5.2,2.0,Iris-virginica
4.9,3.1,1.5,0.1,Iris-setosa
6.3,2.3,4.4,1.3,Iris-versicolor
6.2,2.2,4.5,1.5,Iris-versicolor
5.7,3.8,1.7,0.3,Iris-setosa
6.4,2.8,5.6,2.1,Iris-virginica
4.9,2.4,3.3,1.0,Iris-versicolor
5.7,2.5,5.0,2.0,Iris-virginica
5.5,4.2,1.4,0.2,Iris-setosa
6.7,3.0,5.0,1.7,Iris-versicolor
5.0,3.3,1.4,0.2,Iris-setosa
6.3,2.5,4.9,1.5,Iris-versicolor
5.4,3.7,1.5,0.2,Iris-setosa
7.7,2.6,6.9,2.3,Iris-virginica
5.7,3.0,4.2,1.2,Iris-versicolor
7.6,3.0,6.6,2.1,Iris-virginica
4.8,3.1,1.6,0.2,Iris-setosa
5.6,2.8,4.9,2.0,Iris-virginica
4.5,2.3,1.3,0.3,Iris-setosa
6.8,3.2,5.9,2.3,Iris-virginica
6.3,3.3,6.0,2.5,Iris-virginica
4.6,3.4,1.4,0.3,Iris-setosa
5.8,2.7,3.9,1.2,Iris-versicolor
5.5,2.3,4.0,1.3,Iris-versicolor
5.2,4.1,1.5,0.1,Iris-setosa
6.6,2.9,4.6,1.3,Iris-versicolor
4.3,3.0,1.1,0.1,Iris-setosa
6.8,3.0,5.5,2.1,Iris-virginica
5.8,4.0,1.2,0.2,Iris-setosa
5.1,3.5,1.4,0.3,Iris-setosa
6.5,3.0,5.8,2.2,Iris-virginica
6.9,3.1,5.4,2.1,Iris-virginica
6.7,3.3,5.7,2.1,Iris-virginica
1 łod.dł. łod.sz. pł.dł. pł.sz. Gatunek
2 5.2 3.4 1.4 0.2 Iris-setosa
3 5.1 3.7 1.5 0.4 Iris-setosa
4 6.7 3.1 5.6 2.4 Iris-virginica
5 6.5 3.2 5.1 2.0 Iris-virginica
6 4.9 2.5 4.5 1.7 Iris-virginica
7 6.0 2.7 5.1 1.6 Iris-versicolor
8 5.7 2.6 3.5 1.0 Iris-versicolor
9 5.0 2.0 3.5 1.0 Iris-versicolor
10 5.2 3.5 1.5 0.2 Iris-setosa
11 4.8 3.0 1.4 0.1 Iris-setosa
12 6.7 3.3 5.7 2.5 Iris-virginica
13 6.1 3.0 4.9 1.8 Iris-virginica
14 4.8 3.4 1.9 0.2 Iris-setosa
15 5.8 2.8 5.1 2.4 Iris-virginica
16 4.4 2.9 1.4 0.2 Iris-setosa
17 7.2 3.0 5.8 1.6 Iris-virginica
18 4.4 3.2 1.3 0.2 Iris-setosa
19 5.0 3.5 1.3 0.3 Iris-setosa
20 5.4 3.9 1.3 0.4 Iris-setosa
21 7.7 2.8 6.7 2.0 Iris-virginica
22 5.0 3.6 1.4 0.2 Iris-setosa
23 6.2 2.8 4.8 1.8 Iris-virginica
24 6.0 2.2 5.0 1.5 Iris-virginica
25 7.4 2.8 6.1 1.9 Iris-virginica
26 5.0 3.2 1.2 0.2 Iris-setosa
27 6.7 3.1 4.4 1.4 Iris-versicolor
28 6.7 3.1 4.7 1.5 Iris-versicolor
29 5.6 2.7 4.2 1.3 Iris-versicolor
30 5.6 2.5 3.9 1.1 Iris-versicolor
31 6.3 3.3 4.7 1.6 Iris-versicolor
32 5.1 3.4 1.5 0.2 Iris-setosa
33 6.0 2.9 4.5 1.5 Iris-versicolor
34 5.3 3.7 1.5 0.2 Iris-setosa
35 5.6 2.9 3.6 1.3 Iris-versicolor
36 5.5 2.5 4.0 1.3 Iris-versicolor
37 5.5 2.4 3.7 1.0 Iris-versicolor
38 4.4 3.0 1.3 0.2 Iris-setosa
39 6.6 3.0 4.4 1.4 Iris-versicolor
40 7.9 3.8 6.4 2.0 Iris-virginica
41 5.7 2.8 4.1 1.3 Iris-versicolor
42 5.8 2.7 4.1 1.0 Iris-versicolor
43 6.5 2.8 4.6 1.5 Iris-versicolor
44 6.1 2.8 4.7 1.2 Iris-versicolor
45 5.1 3.8 1.9 0.4 Iris-setosa
46 5.0 3.4 1.6 0.4 Iris-setosa
47 5.5 2.6 4.4 1.2 Iris-versicolor
48 5.0 3.4 1.5 0.2 Iris-setosa
49 6.8 2.8 4.8 1.4 Iris-versicolor
50 6.9 3.1 4.9 1.5 Iris-versicolor
51 6.1 2.9 4.7 1.4 Iris-versicolor
52 5.1 3.8 1.6 0.2 Iris-setosa
53 6.4 3.2 5.3 2.3 Iris-virginica
54 6.4 2.7 5.3 1.9 Iris-virginica
55 5.7 2.8 4.5 1.3 Iris-versicolor
56 5.8 2.6 4.0 1.2 Iris-versicolor
57 4.7 3.2 1.6 0.2 Iris-setosa
58 5.1 3.3 1.7 0.5 Iris-setosa
59 4.9 3.1 1.5 0.1 Iris-setosa
60 6.3 3.4 5.6 2.4 Iris-virginica
61 5.1 3.8 1.5 0.3 Iris-setosa
62 7.0 3.2 4.7 1.4 Iris-versicolor
63 5.4 3.0 4.5 1.5 Iris-versicolor
64 6.0 2.2 4.0 1.0 Iris-versicolor
65 6.0 3.0 4.8 1.8 Iris-virginica
66 6.2 2.9 4.3 1.3 Iris-versicolor
67 5.6 3.0 4.1 1.3 Iris-versicolor
68 4.9 3.0 1.4 0.2 Iris-setosa
69 5.0 2.3 3.3 1.0 Iris-versicolor
70 6.3 2.5 5.0 1.9 Iris-virginica
71 4.8 3.4 1.6 0.2 Iris-setosa
72 5.9 3.0 4.2 1.5 Iris-versicolor
73 4.6 3.6 1.0 0.2 Iris-setosa
74 5.0 3.5 1.6 0.6 Iris-setosa
75 5.7 4.4 1.5 0.4 Iris-setosa
76 5.0 3.0 1.6 0.2 Iris-setosa
77 5.6 3.0 4.5 1.5 Iris-versicolor
78 6.3 2.8 5.1 1.5 Iris-virginica
79 5.2 2.7 3.9 1.4 Iris-versicolor
80 5.9 3.2 4.8 1.8 Iris-versicolor
81 7.7 3.0 6.1 2.3 Iris-virginica
82 6.2 3.4 5.4 2.3 Iris-virginica
83 6.4 2.9 4.3 1.3 Iris-versicolor
84 6.5 3.0 5.5 1.8 Iris-virginica
85 5.8 2.7 5.1 1.9 Iris-virginica
86 6.9 3.2 5.7 2.3 Iris-virginica
87 6.4 2.8 5.6 2.2 Iris-virginica
88 4.7 3.2 1.3 0.2 Iris-setosa
89 5.5 2.4 3.8 1.1 Iris-versicolor
90 5.4 3.4 1.5 0.4 Iris-setosa
91 7.2 3.6 6.1 2.5 Iris-virginica
92 6.7 2.5 5.8 1.8 Iris-virginica
93 6.1 3.0 4.6 1.4 Iris-versicolor
94 6.0 3.4 4.5 1.6 Iris-versicolor
95 6.3 2.7 4.9 1.8 Iris-virginica
96 6.9 3.1 5.1 2.3 Iris-virginica
97 5.5 3.5 1.3 0.2 Iris-setosa
98 6.7 3.0 5.2 2.3 Iris-virginica
99 4.6 3.1 1.5 0.2 Iris-setosa
100 5.8 2.7 5.1 1.9 Iris-virginica
101 6.4 3.1 5.5 1.8 Iris-virginica
102 7.3 2.9 6.3 1.8 Iris-virginica
103 4.8 3.0 1.4 0.3 Iris-setosa
104 7.1 3.0 5.9 2.1 Iris-virginica
105 5.9 3.0 5.1 1.8 Iris-virginica
106 6.1 2.6 5.6 1.4 Iris-virginica
107 5.4 3.9 1.7 0.4 Iris-setosa
108 6.4 3.2 4.5 1.5 Iris-versicolor
109 5.1 2.5 3.0 1.1 Iris-versicolor
110 6.3 2.9 5.6 1.8 Iris-virginica
111 7.2 3.2 6.0 1.8 Iris-virginica
112 5.4 3.4 1.7 0.2 Iris-setosa
113 4.6 3.2 1.4 0.2 Iris-setosa
114 6.1 2.8 4.0 1.3 Iris-versicolor
115 7.7 3.8 6.7 2.2 Iris-virginica
116 5.7 2.9 4.2 1.3 Iris-versicolor
117 5.1 3.5 1.4 0.2 Iris-setosa
118 4.9 3.1 1.5 0.1 Iris-setosa
119 6.5 3.0 5.2 2.0 Iris-virginica
120 4.9 3.1 1.5 0.1 Iris-setosa
121 6.3 2.3 4.4 1.3 Iris-versicolor
122 6.2 2.2 4.5 1.5 Iris-versicolor
123 5.7 3.8 1.7 0.3 Iris-setosa
124 6.4 2.8 5.6 2.1 Iris-virginica
125 4.9 2.4 3.3 1.0 Iris-versicolor
126 5.7 2.5 5.0 2.0 Iris-virginica
127 5.5 4.2 1.4 0.2 Iris-setosa
128 6.7 3.0 5.0 1.7 Iris-versicolor
129 5.0 3.3 1.4 0.2 Iris-setosa
130 6.3 2.5 4.9 1.5 Iris-versicolor
131 5.4 3.7 1.5 0.2 Iris-setosa
132 7.7 2.6 6.9 2.3 Iris-virginica
133 5.7 3.0 4.2 1.2 Iris-versicolor
134 7.6 3.0 6.6 2.1 Iris-virginica
135 4.8 3.1 1.6 0.2 Iris-setosa
136 5.6 2.8 4.9 2.0 Iris-virginica
137 4.5 2.3 1.3 0.3 Iris-setosa
138 6.8 3.2 5.9 2.3 Iris-virginica
139 6.3 3.3 6.0 2.5 Iris-virginica
140 4.6 3.4 1.4 0.3 Iris-setosa
141 5.8 2.7 3.9 1.2 Iris-versicolor
142 5.5 2.3 4.0 1.3 Iris-versicolor
143 5.2 4.1 1.5 0.1 Iris-setosa
144 6.6 2.9 4.6 1.3 Iris-versicolor
145 4.3 3.0 1.1 0.1 Iris-setosa
146 6.8 3.0 5.5 2.1 Iris-virginica
147 5.8 4.0 1.2 0.2 Iris-setosa
148 5.1 3.5 1.4 0.3 Iris-setosa
149 6.5 3.0 5.8 2.2 Iris-virginica
150 6.9 3.1 5.4 2.1 Iris-virginica
151 6.7 3.3 5.7 2.1 Iris-virginica

15
w3/tennis.tsv Normal file
View File

@ -0,0 +1,15 @@
Day Outlook Humidity Wind Play
1 Sunny High Weak No
2 Sunny High Strong No
3 Overcast High Weak Yes
4 Rain High Weak Yes
5 Rain Normal Weak Yes
6 Rain Normal Strong No
7 Overcast Normal Strong Yes
8 Sunny High Weak No
9 Sunny Normal Weak Yes
10 Rain Normal Weak Yes
11 Sunny Normal Strong Yes
12 Overcast High Strong Yes
13 Overcast Normal Weak Yes
14 Rain High Strong No
1 Day Outlook Humidity Wind Play
2 1 Sunny High Weak No
3 2 Sunny High Strong No
4 3 Overcast High Weak Yes
5 4 Rain High Weak Yes
6 5 Rain Normal Weak Yes
7 6 Rain Normal Strong No
8 7 Overcast Normal Strong Yes
9 8 Sunny High Weak No
10 9 Sunny Normal Weak Yes
11 10 Rain Normal Weak Yes
12 11 Sunny Normal Strong Yes
13 12 Overcast High Strong Yes
14 13 Overcast Normal Weak Yes
15 14 Rain High Strong No

BIN
w3/zumz183.zip Normal file

Binary file not shown.

1204
w3/zumz3a.ipynb Normal file

File diff suppressed because one or more lines are too long

BIN
w3/zumz3a.pdf Normal file

Binary file not shown.

847
w3/zumz3b.ipynb Normal file
View File

@ -0,0 +1,847 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## Uczenie maszynowe UMZ 2017/2018\n",
"# 3. Naiwny klasyfikator bayesowski, drzewa decyzyjne\n",
"### Część 2"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## 3.2. Drzewa decyzyjne"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### Drzewa decyzyjne przykład"
]
},
{
"cell_type": "code",
"execution_count": 2,
"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",
"\n",
"%matplotlib inline"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style>\n",
" .dataframe thead tr:only-child th {\n",
" text-align: right;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: left;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Day</th>\n",
" <th>Outlook</th>\n",
" <th>Humidity</th>\n",
" <th>Wind</th>\n",
" <th>Play</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>1</td>\n",
" <td>Sunny</td>\n",
" <td>High</td>\n",
" <td>Weak</td>\n",
" <td>No</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>2</td>\n",
" <td>Sunny</td>\n",
" <td>High</td>\n",
" <td>Strong</td>\n",
" <td>No</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>3</td>\n",
" <td>Overcast</td>\n",
" <td>High</td>\n",
" <td>Weak</td>\n",
" <td>Yes</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>4</td>\n",
" <td>Rain</td>\n",
" <td>High</td>\n",
" <td>Weak</td>\n",
" <td>Yes</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>5</td>\n",
" <td>Rain</td>\n",
" <td>Normal</td>\n",
" <td>Weak</td>\n",
" <td>Yes</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>6</td>\n",
" <td>Rain</td>\n",
" <td>Normal</td>\n",
" <td>Strong</td>\n",
" <td>No</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>7</td>\n",
" <td>Overcast</td>\n",
" <td>Normal</td>\n",
" <td>Strong</td>\n",
" <td>Yes</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>8</td>\n",
" <td>Sunny</td>\n",
" <td>High</td>\n",
" <td>Weak</td>\n",
" <td>No</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>9</td>\n",
" <td>Sunny</td>\n",
" <td>Normal</td>\n",
" <td>Weak</td>\n",
" <td>Yes</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>10</td>\n",
" <td>Rain</td>\n",
" <td>Normal</td>\n",
" <td>Weak</td>\n",
" <td>Yes</td>\n",
" </tr>\n",
" <tr>\n",
" <th>10</th>\n",
" <td>11</td>\n",
" <td>Sunny</td>\n",
" <td>Normal</td>\n",
" <td>Strong</td>\n",
" <td>Yes</td>\n",
" </tr>\n",
" <tr>\n",
" <th>11</th>\n",
" <td>12</td>\n",
" <td>Overcast</td>\n",
" <td>High</td>\n",
" <td>Strong</td>\n",
" <td>Yes</td>\n",
" </tr>\n",
" <tr>\n",
" <th>12</th>\n",
" <td>13</td>\n",
" <td>Overcast</td>\n",
" <td>Normal</td>\n",
" <td>Weak</td>\n",
" <td>Yes</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13</th>\n",
" <td>14</td>\n",
" <td>Rain</td>\n",
" <td>High</td>\n",
" <td>Strong</td>\n",
" <td>No</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Day Outlook Humidity Wind Play\n",
"0 1 Sunny High Weak No\n",
"1 2 Sunny High Strong No\n",
"2 3 Overcast High Weak Yes\n",
"3 4 Rain High Weak Yes\n",
"4 5 Rain Normal Weak Yes\n",
"5 6 Rain Normal Strong No\n",
"6 7 Overcast Normal Strong Yes\n",
"7 8 Sunny High Weak No\n",
"8 9 Sunny Normal Weak Yes\n",
"9 10 Rain Normal Weak Yes\n",
"10 11 Sunny Normal Strong Yes\n",
"11 12 Overcast High Strong Yes\n",
"12 13 Overcast Normal Weak Yes\n",
"13 14 Rain High Strong No"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"alldata = pandas.read_csv('tennis.tsv', sep='\\t')\n",
"alldata"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"text/plain": [
"{'Humidity': {'High', 'Normal'},\n",
" 'Outlook': {'Overcast', 'Rain', 'Sunny'},\n",
" 'Wind': {'Strong', 'Weak'}}"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Dane jako lista słowników\n",
"data = alldata.T.to_dict().values()\n",
"features = ['Outlook', 'Humidity', 'Wind']\n",
"\n",
"# Możliwe wartości w poszczególnych kolumnach\n",
"values = {feature: set(row[feature] for row in data)\n",
" for feature in features}\n",
"values"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"* Czy John zagra w tenisa, jeżeli będzie padać, przy wysokiej wilgotności i silnym wietrze?\n",
"* Algorytm drzew decyzyjnych spróbuje _zrozumieć_ „taktykę” Johna.\n",
"* Wykorzystamy metodę „dziel i zwyciężaj”."
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [],
"source": [
"# Podziel dane\n",
"def split(features, data):\n",
" values = {feature: list(set(row[feature]\n",
" for row in data))\n",
" for feature in features}\n",
" if not features:\n",
" return data\n",
" return {val: split(features[1:],\n",
" [row for row in data\n",
" if row[features[0]] == val])\n",
" for val in values[features[0]]}"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\tOutlook\tHumid\tWind\tPlay\n",
"Day 3:\tOvercast\tHigh\tWeak\tYes\n",
"Day 7:\tOvercast\tNormal\tStrong\tYes\n",
"Day 12:\tOvercast\tHigh\tStrong\tYes\n",
"Day 13:\tOvercast\tNormal\tWeak\tYes\n",
"\n",
"\tOutlook\tHumid\tWind\tPlay\n",
"Day 1:\tSunny\tHigh\tWeak\tNo\n",
"Day 2:\tSunny\tHigh\tStrong\tNo\n",
"Day 8:\tSunny\tHigh\tWeak\tNo\n",
"Day 9:\tSunny\tNormal\tWeak\tYes\n",
"Day 11:\tSunny\tNormal\tStrong\tYes\n",
"\n",
"\tOutlook\tHumid\tWind\tPlay\n",
"Day 4:\tRain\tHigh\tWeak\tYes\n",
"Day 5:\tRain\tNormal\tWeak\tYes\n",
"Day 6:\tRain\tNormal\tStrong\tNo\n",
"Day 10:\tRain\tNormal\tWeak\tYes\n",
"Day 14:\tRain\tHigh\tStrong\tNo\n"
]
}
],
"source": [
"split_data = split(['Outlook'], data)\n",
"\n",
"for outlook in values['Outlook']:\n",
" print('\\n\\tOutlook\\tHumid\\tWind\\tPlay')\n",
" for row in split_data[outlook]:\n",
" print('Day {Day}:\\t{Outlook}\\t{Humidity}\\t{Wind}\\t{Play}'\n",
" .format(**row))"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"Obserwacja: John lubi grać, gdy jest pochmurnie.\n",
"\n",
"W pozostałych przypadkach podzielmy dane ponownie:"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\tOutlook\tHumid\tWind\tPlay\n",
"Day 1:\tSunny\tHigh\tWeak\tNo\n",
"Day 2:\tSunny\tHigh\tStrong\tNo\n",
"Day 8:\tSunny\tHigh\tWeak\tNo\n",
"\n",
"\tOutlook\tHumid\tWind\tPlay\n",
"Day 9:\tSunny\tNormal\tWeak\tYes\n",
"Day 11:\tSunny\tNormal\tStrong\tYes\n"
]
}
],
"source": [
"split_data_sunny = split(['Outlook', 'Humidity'], data)\n",
"\n",
"for humidity in values['Humidity']:\n",
" print('\\n\\tOutlook\\tHumid\\tWind\\tPlay')\n",
" for row in split_data_sunny['Sunny'][humidity]:\n",
" print('Day {Day}:\\t{Outlook}\\t{Humidity}\\t{Wind}\\t{Play}'\n",
" .format(**row))"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\tOutlook\tHumid\tWind\tPlay\n",
"Day 6:\tRain\tNormal\tStrong\tNo\n",
"Day 14:\tRain\tHigh\tStrong\tNo\n",
"\n",
"\tOutlook\tHumid\tWind\tPlay\n",
"Day 4:\tRain\tHigh\tWeak\tYes\n",
"Day 5:\tRain\tNormal\tWeak\tYes\n",
"Day 10:\tRain\tNormal\tWeak\tYes\n"
]
}
],
"source": [
"split_data_rain = split(['Outlook', 'Wind'], data)\n",
"\n",
"for wind in values['Wind']:\n",
" print('\\n\\tOutlook\\tHumid\\tWind\\tPlay')\n",
" for row in split_data_rain['Rain'][wind]:\n",
" print('Day {Day}:\\t{Outlook}\\t{Humidity}\\t{Wind}\\t{Play}'\n",
" .format(**row))"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"* Outlook=\n",
" * Overcast\n",
" * → Playing\n",
" * Sunny\n",
" * Humidity=\n",
" * High\n",
" * → Not playing\n",
" * Normal\n",
" * → Playing\n",
" * Rain\n",
" * Wind=\n",
" * Weak\n",
" * → Playing\n",
" * Strong\n",
" * → Not playing"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"* (9/5)\n",
" * Outlook=Overcast (4/0)\n",
" * YES\n",
" * Outlook=Sunny (2/3)\n",
" * Humidity=High (0/3)\n",
" * NO\n",
" * Humidity=Normal (2/0)\n",
" * YES\n",
" * Outlook=Rain (3/2)\n",
" * Wind=Weak (3/0)\n",
" * YES\n",
" * Wind=Strong (0/2)\n",
" * NO"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### Algorytm ID3\n",
"\n",
"* podziel(węzeł, zbiór przykładów):\n",
" 1. A ← najlepszy atrybut do podziału zbioru przykładów\n",
" 1. Dla każdej wartości atrybutu A, utwórz nowy węzeł potomny\n",
" 1. Podziel zbiór przykładów na podzbiory według węzłów potomnych\n",
" 1. Dla każdego węzła potomnego i podzbioru:\n",
" * jeżeli podzbiór jest jednolity: zakończ\n",
" * w przeciwnym przypadku: podziel(węzeł potomny, podzbiór)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"Jak wybrać „najlepszy atrybut”?\n",
"* powinien zawierać jednolity podzbiór\n",
"* albo przynajmniej „w miarę jednolity”\n",
"\n",
"Skąd wziąć miarę „jednolitości” podzbioru?\n",
"* miara powinna być symetryczna (4/0 vs. 0/4)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### Entropia\n",
"\n",
"$$ H(S) = - p_{(+)} \\log p_{(+)} - p_{(-)} \\log p_{(-)} $$\n",
"\n",
"* $S$ podzbiór przykładów\n",
"* $p_{(+)}$, $p_{(-)}$ procent pozytywnych/negatywnych przykładów w $S$"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
"Entropię można traktować jako „liczbę bitów” potrzebną do sprawdzenia, czy losowo wybrany $x \\in S$ jest pozytywnym, czy negatywnym przykładem."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"#### Entropia przykład\n",
"\n",
"* (3 TAK / 3 NIE):\n",
"$$ H(S) = -\\frac{3}{6} \\log\\frac{3}{6} - \\frac{3}{6} \\log\\frac{3}{6} = 1 \\mbox{ bit} $$\n",
"* (4 TAK / 0 NIE):\n",
"$$ H(S) = -\\frac{4}{4} \\log\\frac{4}{4} - \\frac{0}{4} \\log\\frac{0}{4} = 0 \\mbox{ bitów} $$"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### _Information gain_\n",
"\n",
"_Information gain_ różnica między entropią przed podziałem a entropią po podziale (podczas podziału entropia zmienia się):\n",
"\n",
"$$ \\mathop{\\rm Gain}(S,A) = H(S) - \\sum_{V \\in \\mathop{\\rm Values(A)}} \\frac{|S_V|}{|S|} H(S_V) $$"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"#### _Information gain_ przykład\n",
"\n",
"$$ \\mathop{\\rm Gain}(S, Wind) = H(S) - \\frac{8}{14} H(S_{Wind={\\rm Weak}}) - \\frac{6}{14} H(S_{Wind={\\rm Strong}}) = \\\\\n",
"= 0.94 - \\frac{8}{14} \\cdot 0.81 - \\frac{6}{14} \\cdot 1.0 = 0.049 $$"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"* _Information gain_ jest całkiem sensowną heurystyką wskazującą, który atrybut jest najlepszy do dokonania podziału.\n",
"* **Ale**: _information gain_ przeszacowuje użyteczność atrybutów, które mają dużo różnych wartości.\n",
"* **Przykład**: gdybyśmy wybrali jako atrybut _datę_, otrzymalibyśmy bardzo duży _information gain_, ponieważ każdy podzbiór byłby jednolity, a nie byłoby to ani trochę użyteczne!"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### _Information gain ratio_\n",
"\n",
"$$ \\mathop{\\rm GainRatio}(S, A) = \\frac{ \\mathop{\\rm Gain}(S, A) }{ -\\sum_{V \\in \\mathop{\\rm Values}(A)} \\frac{|S_V|}{|S|} \\log\\frac{|S_V|}{|S|} } $$"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
"* _Information gain ratio_ może być lepszym wyborem heurystyki wskazującej najużyteczniejszy atrybut, jeżeli atrybuty mają wiele różnych wartości."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### Drzewa decyzyjne a formuły logiczne\n",
"\n",
"Drzewo decyzyjne można pzekształcić na formułę logiczną w postaci normalnej (DNF):\n",
"\n",
"$$ Play={\\rm True} \\Leftrightarrow \\left( Outlook={\\rm Overcast} \\vee \\\\\n",
"( Outlook={\\rm Rain} \\wedge Wind={\\rm Weak} ) \\vee \\\\\n",
"( Outlook={\\rm Sunny} \\wedge Humidity={\\rm Normal} ) \\right) $$"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### Klasyfikacja wieloklasowa przy użyciu drzew decyzyjnych\n",
"\n",
"Algorytm przebiega analogicznie, zmienia się jedynie wzór na entropię:\n",
"\n",
"$$ H(S) = -\\sum_{y \\in Y} p_{(y)} \\log p_{(y)} $$"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### Skuteczność algorytmu ID3\n",
"\n",
"* Przyjmujemy, że wśród danych uczących nie ma duplikatów (tj. przykładów, które mają jednakowe cechy $x$, a mimo to należą do różnych klas $y$).\n",
"* Wówczas algorytm drzew decyzyjnych zawsze znajdzie rozwiązanie, ponieważ w ostateczności będziemy mieli węzły 1-elementowe na liściach drzewa."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### Nadmierne dopasowanie drzew decyzyjnych\n",
"\n",
"* Zauważmy, że w miarę postępowania algorytmu dokładność przewidywań drzewa (_accuracy_) liczona na zbiorze uczącym dąży do 100% (i w ostateczności osiąga 100%, nawet kosztem jednoelementowych liści).\n",
"* Takie rozwiązanie niekoniecznie jest optymalne. Dokładność na zbiorze testowym może być dużo niższa, a to oznacza nadmierne dopasowanie."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### Jak zapobiec nadmiernemu dopasowaniu?\n",
"\n",
"Aby zapobiegać nadmiernemu dopasowaniu drzew decyzyjnych, należy je przycinać (_pruning_)."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"Można tego dokonywać na kilka sposobów:\n",
"* Można zatrzymywać procedurę podziału w pewnym momencie (np. kiedy podzbiory staja się zbyt małe).\n",
"* Można najpierw wykonać algorytm ID3 w całości, a następnie przyciąć drzewo, np. kierując się wynikami uzyskanymi na zbiorze walidacyjnym.\n",
"* Algorytm _sub-tree replacement pruning_ (algorytm zachłanny)."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"#### _Sub-tree replacement pruning_\n",
"\n",
"1. Dla każdego węzła:\n",
" 1. Udaj, że usuwasz węzeł wraz z całym zaczepionym w nim poddrzewem.\n",
" 1. Dokonaj ewaluacji na zbiorze walidacyjnym.\n",
"1. Usuń węzeł, którego usunięcie daje największą poprawę wyniku.\n",
"1. Powtarzaj, dopóki usuwanie węzłów poprawia wynik."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### Zalety drzew decyzyjnych\n",
"\n",
"* Zasadę działania drzew decyzyjnych łatwo zrozumieć człowiekowi.\n",
"* Atrybuty, które nie wpływają na wynik, mają _gain_ równy 0, zatem są od razu pomijane przez algorytm.\n",
"* Po zbudowaniu, drzewo decyzyjne jest bardzo szybkim klasyfikatorem (złożoność $O(d)$, gdzie $d$ jest głębokościa dzewa)."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### Wady drzew decyzyjnych\n",
"\n",
"* ID3 jest algorytmem zachłannym może nie wskazać najlepszego drzewa.\n",
"* Nie da się otrzymać granic klas (_decision boundaries_), które nie są równoległe do osi wykresu."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## 3.3. Lasy losowe"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### Algorytm lasów losowych idea\n",
"\n",
"* Algorytm lasów losowych jest rozwinięciem algorytmu ID3.\n",
"* Jest to bardzo wydajny algorytm klasyfikacji.\n",
"* Zamiast jednego, będziemy budować $k$ drzew."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### Algorytm lasów losowych budowa lasu\n",
"\n",
"1. Weź losowy podzbiór $S_r$ zbioru uczącego.\n",
"1. Zbuduj pełne (tj. bez przycinania) drzewo decyzyjne dla $S_r$, używając algorytmu ID3 z następującymi modyfikacjami:\n",
" * podczas podziału używaj losowego $d$-elementowego podzbioru atrybutów,\n",
" * obliczaj _gain_ względem $S_r$.\n",
"1. Powyższą procedurę powtórz $k$-krotnie, otrzymując $k$ drzew ($T_1, T_2, \\ldots, T_k$)."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### Algorytm lasów losowych predykcja\n",
"\n",
"1. Sklasyfikuj $x$ według każdego z drzew $T_1, T_2, \\ldots, T_k$ z osobna.\n",
"1. Użyj głosowania większościowego: przypisz klasę przewidzianą przez najwięcej drzew."
]
}
],
"metadata": {
"celltoolbar": "Slideshow",
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.15rc1"
},
"livereveal": {
"start_slideshow_at": "selected",
"theme": "amu"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

BIN
w3/zumz3b.pdf Normal file

Binary file not shown.

20
w4/classification.tsv Normal file
View File

@ -0,0 +1,20 @@
0 -0.8014509894297421 -0.5994635333915026
0 -0.7706966545879539 0.6368117894533625
0 -0.27709533263047414 0.8256752096021349
0 0.9930555307918127 0.36630467592076577
1 -0.16225248935963799 0.4956311492381327
0 0.934855703919385 0.8549023876664064
0 -0.5145933151394193 -0.804772931556422
1 0.10024139618609662 0.018730576213300765
0 0.9713755569949907 0.16659909394686068
1 -0.07322231752678521 -0.18763566969904533
0 -0.5702785062714137 0.3522449667057965
1 0.1848842019744028 0.4173729058647151
0 0.24479522096847361 -0.7089634989586504
0 0.6236644548417194 -0.1156611626471038
0 -0.10592913601169007 -0.9980825893807068
0 -0.23607206404847436 -0.7428335400803034
0 -0.11951845657345062 -0.8219825834866892
0 0.04590771234351232 -0.7564447785519108
1 0.7967711966832445 -0.4352501064041614
1 0.8053812216632301 0.1203107620499666
1 0 -0.8014509894297421 -0.5994635333915026
2 0 -0.7706966545879539 0.6368117894533625
3 0 -0.27709533263047414 0.8256752096021349
4 0 0.9930555307918127 0.36630467592076577
5 1 -0.16225248935963799 0.4956311492381327
6 0 0.934855703919385 0.8549023876664064
7 0 -0.5145933151394193 -0.804772931556422
8 1 0.10024139618609662 0.018730576213300765
9 0 0.9713755569949907 0.16659909394686068
10 1 -0.07322231752678521 -0.18763566969904533
11 0 -0.5702785062714137 0.3522449667057965
12 1 0.1848842019744028 0.4173729058647151
13 0 0.24479522096847361 -0.7089634989586504
14 0 0.6236644548417194 -0.1156611626471038
15 0 -0.10592913601169007 -0.9980825893807068
16 0 -0.23607206404847436 -0.7428335400803034
17 0 -0.11951845657345062 -0.8219825834866892
18 0 0.04590771234351232 -0.7564447785519108
19 1 0.7967711966832445 -0.4352501064041614
20 1 0.8053812216632301 0.1203107620499666

View File

@ -0,0 +1,26 @@
#!/usr/bin/python3
# -*- coding:utf-8 -*-
import csv
import math
import random
import sys
def create_polynomial_logistic_data(filename):
with open(filename, 'w') as f:
writer = csv.writer(
f, delimiter=('\t' if filename.endswith('.tsv') else ','))
for i in range(50):
x = random.uniform(-1.0, 1.0)
y = random.uniform(-1.0, 1.0)
p = math.sqrt(x*x + y*y)
for i in range(1):
p = -2 * p**3 + 3 * p**2
v = 1 if random.random() > p else 0
writer.writerow([v, x, y])
if __name__ == '__main__':
create_polynomial_logistic_data(sys.argv[1])

50
w4/data.tsv Normal file
View File

@ -0,0 +1,50 @@
0 -0.9410633308036449 0.46518252113944425
1 0.4700636553691919 -0.3970321538875541
1 -0.01609299859794966 0.23161453968628254
0 -0.9966154155058933 0.06419313152355421
0 0.8000009607150127 0.44133107977776875
0 0.389227379480078 -0.8415416694237676
0 -0.7786281038890375 0.2833716839963434
1 -0.10150562150521569 -0.02968754639839366
1 -0.14995353486391494 0.30921523116923866
0 0.3150219624148183 0.4186143523577863
0 -0.5542734031872467 0.9291684810885719
0 -0.44750469543445215 -0.8240387195698262
0 -0.7875312310670415 0.27475695030524894
0 0.20470154428730747 -0.8122722630746713
0 0.07472783793361693 0.8936381678688297
0 -0.6016285994197443 -0.9783927694535444
0 0.4235345463350013 -0.23977977886239832
0 0.256790496684171 -0.5587059709121811
0 -0.2172656054288027 0.8015306542483966
0 0.2009238354275602 0.9376873763906164
0 -0.8760038215191506 0.015194717659306356
0 -0.1512141038160364 -0.9575528046526418
0 -0.6378974241766098 0.35900665963616696
0 -0.6219617077011876 0.04019896541474166
0 -0.2533778634666939 -0.8576798720089458
0 -0.9398823073223508 0.806594859009744
0 -0.24161324930138606 -0.6982896600554984
0 -0.967724402993285 0.15651783268628372
0 0.9587968810951801 -0.3382309645563397
1 0.18040441263417084 -0.026706542719935777
0 -0.2403226372749332 -0.2694487472698215
0 -0.49494412803453747 -0.6833825934742561
0 -0.32266963833818574 0.6299706350061482
0 -0.716450532167108 0.7792499086149187
1 -0.5661825812948427 -0.3045016769669948
0 -0.9014952263862088 0.19697267011506714
1 0.3192734822128551 -0.3145295901019187
1 -0.4386590899062277 0.6119229005694005
0 -0.6306933372350818 0.4721301354446683
0 0.3302936606411402 -0.3047093070118343
1 -0.38049655790356285 -0.609474130471132
1 0.32069301644263426 0.17266197471996692
1 0.8349752241994568 0.4408717276862013
0 -0.26741723386938343 -0.4919294757003996
0 -0.7786699335922747 -0.47305795528791905
0 0.723410510517891 -0.010095862311693793
0 0.0902826080483603 -0.6805262097228113
0 -0.9286972617786873 0.7200430642275493
0 -0.0623197964184079 0.8187639325432745
0 -0.20572090815735944 -0.6655000969777327
1 0 -0.9410633308036449 0.46518252113944425
2 1 0.4700636553691919 -0.3970321538875541
3 1 -0.01609299859794966 0.23161453968628254
4 0 -0.9966154155058933 0.06419313152355421
5 0 0.8000009607150127 0.44133107977776875
6 0 0.389227379480078 -0.8415416694237676
7 0 -0.7786281038890375 0.2833716839963434
8 1 -0.10150562150521569 -0.02968754639839366
9 1 -0.14995353486391494 0.30921523116923866
10 0 0.3150219624148183 0.4186143523577863
11 0 -0.5542734031872467 0.9291684810885719
12 0 -0.44750469543445215 -0.8240387195698262
13 0 -0.7875312310670415 0.27475695030524894
14 0 0.20470154428730747 -0.8122722630746713
15 0 0.07472783793361693 0.8936381678688297
16 0 -0.6016285994197443 -0.9783927694535444
17 0 0.4235345463350013 -0.23977977886239832
18 0 0.256790496684171 -0.5587059709121811
19 0 -0.2172656054288027 0.8015306542483966
20 0 0.2009238354275602 0.9376873763906164
21 0 -0.8760038215191506 0.015194717659306356
22 0 -0.1512141038160364 -0.9575528046526418
23 0 -0.6378974241766098 0.35900665963616696
24 0 -0.6219617077011876 0.04019896541474166
25 0 -0.2533778634666939 -0.8576798720089458
26 0 -0.9398823073223508 0.806594859009744
27 0 -0.24161324930138606 -0.6982896600554984
28 0 -0.967724402993285 0.15651783268628372
29 0 0.9587968810951801 -0.3382309645563397
30 1 0.18040441263417084 -0.026706542719935777
31 0 -0.2403226372749332 -0.2694487472698215
32 0 -0.49494412803453747 -0.6833825934742561
33 0 -0.32266963833818574 0.6299706350061482
34 0 -0.716450532167108 0.7792499086149187
35 1 -0.5661825812948427 -0.3045016769669948
36 0 -0.9014952263862088 0.19697267011506714
37 1 0.3192734822128551 -0.3145295901019187
38 1 -0.4386590899062277 0.6119229005694005
39 0 -0.6306933372350818 0.4721301354446683
40 0 0.3302936606411402 -0.3047093070118343
41 1 -0.38049655790356285 -0.609474130471132
42 1 0.32069301644263426 0.17266197471996692
43 1 0.8349752241994568 0.4408717276862013
44 0 -0.26741723386938343 -0.4919294757003996
45 0 -0.7786699335922747 -0.47305795528791905
46 0 0.723410510517891 -0.010095862311693793
47 0 0.0902826080483603 -0.6805262097228113
48 0 -0.9286972617786873 0.7200430642275493
49 0 -0.0623197964184079 0.8187639325432745
50 0 -0.20572090815735944 -0.6655000969777327

151
w4/iris.csv Normal file
View File

@ -0,0 +1,151 @@
łod.dł.,łod.sz.,pł.dł.,pł.sz.,Gatunek
5.2,3.4,1.4,0.2,Iris-setosa
5.1,3.7,1.5,0.4,Iris-setosa
6.7,3.1,5.6,2.4,Iris-virginica
6.5,3.2,5.1,2.0,Iris-virginica
4.9,2.5,4.5,1.7,Iris-virginica
6.0,2.7,5.1,1.6,Iris-versicolor
5.7,2.6,3.5,1.0,Iris-versicolor
5.0,2.0,3.5,1.0,Iris-versicolor
5.2,3.5,1.5,0.2,Iris-setosa
4.8,3.0,1.4,0.1,Iris-setosa
6.7,3.3,5.7,2.5,Iris-virginica
6.1,3.0,4.9,1.8,Iris-virginica
4.8,3.4,1.9,0.2,Iris-setosa
5.8,2.8,5.1,2.4,Iris-virginica
4.4,2.9,1.4,0.2,Iris-setosa
7.2,3.0,5.8,1.6,Iris-virginica
4.4,3.2,1.3,0.2,Iris-setosa
5.0,3.5,1.3,0.3,Iris-setosa
5.4,3.9,1.3,0.4,Iris-setosa
7.7,2.8,6.7,2.0,Iris-virginica
5.0,3.6,1.4,0.2,Iris-setosa
6.2,2.8,4.8,1.8,Iris-virginica
6.0,2.2,5.0,1.5,Iris-virginica
7.4,2.8,6.1,1.9,Iris-virginica
5.0,3.2,1.2,0.2,Iris-setosa
6.7,3.1,4.4,1.4,Iris-versicolor
6.7,3.1,4.7,1.5,Iris-versicolor
5.6,2.7,4.2,1.3,Iris-versicolor
5.6,2.5,3.9,1.1,Iris-versicolor
6.3,3.3,4.7,1.6,Iris-versicolor
5.1,3.4,1.5,0.2,Iris-setosa
6.0,2.9,4.5,1.5,Iris-versicolor
5.3,3.7,1.5,0.2,Iris-setosa
5.6,2.9,3.6,1.3,Iris-versicolor
5.5,2.5,4.0,1.3,Iris-versicolor
5.5,2.4,3.7,1.0,Iris-versicolor
4.4,3.0,1.3,0.2,Iris-setosa
6.6,3.0,4.4,1.4,Iris-versicolor
7.9,3.8,6.4,2.0,Iris-virginica
5.7,2.8,4.1,1.3,Iris-versicolor
5.8,2.7,4.1,1.0,Iris-versicolor
6.5,2.8,4.6,1.5,Iris-versicolor
6.1,2.8,4.7,1.2,Iris-versicolor
5.1,3.8,1.9,0.4,Iris-setosa
5.0,3.4,1.6,0.4,Iris-setosa
5.5,2.6,4.4,1.2,Iris-versicolor
5.0,3.4,1.5,0.2,Iris-setosa
6.8,2.8,4.8,1.4,Iris-versicolor
6.9,3.1,4.9,1.5,Iris-versicolor
6.1,2.9,4.7,1.4,Iris-versicolor
5.1,3.8,1.6,0.2,Iris-setosa
6.4,3.2,5.3,2.3,Iris-virginica
6.4,2.7,5.3,1.9,Iris-virginica
5.7,2.8,4.5,1.3,Iris-versicolor
5.8,2.6,4.0,1.2,Iris-versicolor
4.7,3.2,1.6,0.2,Iris-setosa
5.1,3.3,1.7,0.5,Iris-setosa
4.9,3.1,1.5,0.1,Iris-setosa
6.3,3.4,5.6,2.4,Iris-virginica
5.1,3.8,1.5,0.3,Iris-setosa
7.0,3.2,4.7,1.4,Iris-versicolor
5.4,3.0,4.5,1.5,Iris-versicolor
6.0,2.2,4.0,1.0,Iris-versicolor
6.0,3.0,4.8,1.8,Iris-virginica
6.2,2.9,4.3,1.3,Iris-versicolor
5.6,3.0,4.1,1.3,Iris-versicolor
4.9,3.0,1.4,0.2,Iris-setosa
5.0,2.3,3.3,1.0,Iris-versicolor
6.3,2.5,5.0,1.9,Iris-virginica
4.8,3.4,1.6,0.2,Iris-setosa
5.9,3.0,4.2,1.5,Iris-versicolor
4.6,3.6,1.0,0.2,Iris-setosa
5.0,3.5,1.6,0.6,Iris-setosa
5.7,4.4,1.5,0.4,Iris-setosa
5.0,3.0,1.6,0.2,Iris-setosa
5.6,3.0,4.5,1.5,Iris-versicolor
6.3,2.8,5.1,1.5,Iris-virginica
5.2,2.7,3.9,1.4,Iris-versicolor
5.9,3.2,4.8,1.8,Iris-versicolor
7.7,3.0,6.1,2.3,Iris-virginica
6.2,3.4,5.4,2.3,Iris-virginica
6.4,2.9,4.3,1.3,Iris-versicolor
6.5,3.0,5.5,1.8,Iris-virginica
5.8,2.7,5.1,1.9,Iris-virginica
6.9,3.2,5.7,2.3,Iris-virginica
6.4,2.8,5.6,2.2,Iris-virginica
4.7,3.2,1.3,0.2,Iris-setosa
5.5,2.4,3.8,1.1,Iris-versicolor
5.4,3.4,1.5,0.4,Iris-setosa
7.2,3.6,6.1,2.5,Iris-virginica
6.7,2.5,5.8,1.8,Iris-virginica
6.1,3.0,4.6,1.4,Iris-versicolor
6.0,3.4,4.5,1.6,Iris-versicolor
6.3,2.7,4.9,1.8,Iris-virginica
6.9,3.1,5.1,2.3,Iris-virginica
5.5,3.5,1.3,0.2,Iris-setosa
6.7,3.0,5.2,2.3,Iris-virginica
4.6,3.1,1.5,0.2,Iris-setosa
5.8,2.7,5.1,1.9,Iris-virginica
6.4,3.1,5.5,1.8,Iris-virginica
7.3,2.9,6.3,1.8,Iris-virginica
4.8,3.0,1.4,0.3,Iris-setosa
7.1,3.0,5.9,2.1,Iris-virginica
5.9,3.0,5.1,1.8,Iris-virginica
6.1,2.6,5.6,1.4,Iris-virginica
5.4,3.9,1.7,0.4,Iris-setosa
6.4,3.2,4.5,1.5,Iris-versicolor
5.1,2.5,3.0,1.1,Iris-versicolor
6.3,2.9,5.6,1.8,Iris-virginica
7.2,3.2,6.0,1.8,Iris-virginica
5.4,3.4,1.7,0.2,Iris-setosa
4.6,3.2,1.4,0.2,Iris-setosa
6.1,2.8,4.0,1.3,Iris-versicolor
7.7,3.8,6.7,2.2,Iris-virginica
5.7,2.9,4.2,1.3,Iris-versicolor
5.1,3.5,1.4,0.2,Iris-setosa
4.9,3.1,1.5,0.1,Iris-setosa
6.5,3.0,5.2,2.0,Iris-virginica
4.9,3.1,1.5,0.1,Iris-setosa
6.3,2.3,4.4,1.3,Iris-versicolor
6.2,2.2,4.5,1.5,Iris-versicolor
5.7,3.8,1.7,0.3,Iris-setosa
6.4,2.8,5.6,2.1,Iris-virginica
4.9,2.4,3.3,1.0,Iris-versicolor
5.7,2.5,5.0,2.0,Iris-virginica
5.5,4.2,1.4,0.2,Iris-setosa
6.7,3.0,5.0,1.7,Iris-versicolor
5.0,3.3,1.4,0.2,Iris-setosa
6.3,2.5,4.9,1.5,Iris-versicolor
5.4,3.7,1.5,0.2,Iris-setosa
7.7,2.6,6.9,2.3,Iris-virginica
5.7,3.0,4.2,1.2,Iris-versicolor
7.6,3.0,6.6,2.1,Iris-virginica
4.8,3.1,1.6,0.2,Iris-setosa
5.6,2.8,4.9,2.0,Iris-virginica
4.5,2.3,1.3,0.3,Iris-setosa
6.8,3.2,5.9,2.3,Iris-virginica
6.3,3.3,6.0,2.5,Iris-virginica
4.6,3.4,1.4,0.3,Iris-setosa
5.8,2.7,3.9,1.2,Iris-versicolor
5.5,2.3,4.0,1.3,Iris-versicolor
5.2,4.1,1.5,0.1,Iris-setosa
6.6,2.9,4.6,1.3,Iris-versicolor
4.3,3.0,1.1,0.1,Iris-setosa
6.8,3.0,5.5,2.1,Iris-virginica
5.8,4.0,1.2,0.2,Iris-setosa
5.1,3.5,1.4,0.3,Iris-setosa
6.5,3.0,5.8,2.2,Iris-virginica
6.9,3.1,5.4,2.1,Iris-virginica
6.7,3.3,5.7,2.1,Iris-virginica
1 łod.dł. łod.sz. pł.dł. pł.sz. Gatunek
2 5.2 3.4 1.4 0.2 Iris-setosa
3 5.1 3.7 1.5 0.4 Iris-setosa
4 6.7 3.1 5.6 2.4 Iris-virginica
5 6.5 3.2 5.1 2.0 Iris-virginica
6 4.9 2.5 4.5 1.7 Iris-virginica
7 6.0 2.7 5.1 1.6 Iris-versicolor
8 5.7 2.6 3.5 1.0 Iris-versicolor
9 5.0 2.0 3.5 1.0 Iris-versicolor
10 5.2 3.5 1.5 0.2 Iris-setosa
11 4.8 3.0 1.4 0.1 Iris-setosa
12 6.7 3.3 5.7 2.5 Iris-virginica
13 6.1 3.0 4.9 1.8 Iris-virginica
14 4.8 3.4 1.9 0.2 Iris-setosa
15 5.8 2.8 5.1 2.4 Iris-virginica
16 4.4 2.9 1.4 0.2 Iris-setosa
17 7.2 3.0 5.8 1.6 Iris-virginica
18 4.4 3.2 1.3 0.2 Iris-setosa
19 5.0 3.5 1.3 0.3 Iris-setosa
20 5.4 3.9 1.3 0.4 Iris-setosa
21 7.7 2.8 6.7 2.0 Iris-virginica
22 5.0 3.6 1.4 0.2 Iris-setosa
23 6.2 2.8 4.8 1.8 Iris-virginica
24 6.0 2.2 5.0 1.5 Iris-virginica
25 7.4 2.8 6.1 1.9 Iris-virginica
26 5.0 3.2 1.2 0.2 Iris-setosa
27 6.7 3.1 4.4 1.4 Iris-versicolor
28 6.7 3.1 4.7 1.5 Iris-versicolor
29 5.6 2.7 4.2 1.3 Iris-versicolor
30 5.6 2.5 3.9 1.1 Iris-versicolor
31 6.3 3.3 4.7 1.6 Iris-versicolor
32 5.1 3.4 1.5 0.2 Iris-setosa
33 6.0 2.9 4.5 1.5 Iris-versicolor
34 5.3 3.7 1.5 0.2 Iris-setosa
35 5.6 2.9 3.6 1.3 Iris-versicolor
36 5.5 2.5 4.0 1.3 Iris-versicolor
37 5.5 2.4 3.7 1.0 Iris-versicolor
38 4.4 3.0 1.3 0.2 Iris-setosa
39 6.6 3.0 4.4 1.4 Iris-versicolor
40 7.9 3.8 6.4 2.0 Iris-virginica
41 5.7 2.8 4.1 1.3 Iris-versicolor
42 5.8 2.7 4.1 1.0 Iris-versicolor
43 6.5 2.8 4.6 1.5 Iris-versicolor
44 6.1 2.8 4.7 1.2 Iris-versicolor
45 5.1 3.8 1.9 0.4 Iris-setosa
46 5.0 3.4 1.6 0.4 Iris-setosa
47 5.5 2.6 4.4 1.2 Iris-versicolor
48 5.0 3.4 1.5 0.2 Iris-setosa
49 6.8 2.8 4.8 1.4 Iris-versicolor
50 6.9 3.1 4.9 1.5 Iris-versicolor
51 6.1 2.9 4.7 1.4 Iris-versicolor
52 5.1 3.8 1.6 0.2 Iris-setosa
53 6.4 3.2 5.3 2.3 Iris-virginica
54 6.4 2.7 5.3 1.9 Iris-virginica
55 5.7 2.8 4.5 1.3 Iris-versicolor
56 5.8 2.6 4.0 1.2 Iris-versicolor
57 4.7 3.2 1.6 0.2 Iris-setosa
58 5.1 3.3 1.7 0.5 Iris-setosa
59 4.9 3.1 1.5 0.1 Iris-setosa
60 6.3 3.4 5.6 2.4 Iris-virginica
61 5.1 3.8 1.5 0.3 Iris-setosa
62 7.0 3.2 4.7 1.4 Iris-versicolor
63 5.4 3.0 4.5 1.5 Iris-versicolor
64 6.0 2.2 4.0 1.0 Iris-versicolor
65 6.0 3.0 4.8 1.8 Iris-virginica
66 6.2 2.9 4.3 1.3 Iris-versicolor
67 5.6 3.0 4.1 1.3 Iris-versicolor
68 4.9 3.0 1.4 0.2 Iris-setosa
69 5.0 2.3 3.3 1.0 Iris-versicolor
70 6.3 2.5 5.0 1.9 Iris-virginica
71 4.8 3.4 1.6 0.2 Iris-setosa
72 5.9 3.0 4.2 1.5 Iris-versicolor
73 4.6 3.6 1.0 0.2 Iris-setosa
74 5.0 3.5 1.6 0.6 Iris-setosa
75 5.7 4.4 1.5 0.4 Iris-setosa
76 5.0 3.0 1.6 0.2 Iris-setosa
77 5.6 3.0 4.5 1.5 Iris-versicolor
78 6.3 2.8 5.1 1.5 Iris-virginica
79 5.2 2.7 3.9 1.4 Iris-versicolor
80 5.9 3.2 4.8 1.8 Iris-versicolor
81 7.7 3.0 6.1 2.3 Iris-virginica
82 6.2 3.4 5.4 2.3 Iris-virginica
83 6.4 2.9 4.3 1.3 Iris-versicolor
84 6.5 3.0 5.5 1.8 Iris-virginica
85 5.8 2.7 5.1 1.9 Iris-virginica
86 6.9 3.2 5.7 2.3 Iris-virginica
87 6.4 2.8 5.6 2.2 Iris-virginica
88 4.7 3.2 1.3 0.2 Iris-setosa
89 5.5 2.4 3.8 1.1 Iris-versicolor
90 5.4 3.4 1.5 0.4 Iris-setosa
91 7.2 3.6 6.1 2.5 Iris-virginica
92 6.7 2.5 5.8 1.8 Iris-virginica
93 6.1 3.0 4.6 1.4 Iris-versicolor
94 6.0 3.4 4.5 1.6 Iris-versicolor
95 6.3 2.7 4.9 1.8 Iris-virginica
96 6.9 3.1 5.1 2.3 Iris-virginica
97 5.5 3.5 1.3 0.2 Iris-setosa
98 6.7 3.0 5.2 2.3 Iris-virginica
99 4.6 3.1 1.5 0.2 Iris-setosa
100 5.8 2.7 5.1 1.9 Iris-virginica
101 6.4 3.1 5.5 1.8 Iris-virginica
102 7.3 2.9 6.3 1.8 Iris-virginica
103 4.8 3.0 1.4 0.3 Iris-setosa
104 7.1 3.0 5.9 2.1 Iris-virginica
105 5.9 3.0 5.1 1.8 Iris-virginica
106 6.1 2.6 5.6 1.4 Iris-virginica
107 5.4 3.9 1.7 0.4 Iris-setosa
108 6.4 3.2 4.5 1.5 Iris-versicolor
109 5.1 2.5 3.0 1.1 Iris-versicolor
110 6.3 2.9 5.6 1.8 Iris-virginica
111 7.2 3.2 6.0 1.8 Iris-virginica
112 5.4 3.4 1.7 0.2 Iris-setosa
113 4.6 3.2 1.4 0.2 Iris-setosa
114 6.1 2.8 4.0 1.3 Iris-versicolor
115 7.7 3.8 6.7 2.2 Iris-virginica
116 5.7 2.9 4.2 1.3 Iris-versicolor
117 5.1 3.5 1.4 0.2 Iris-setosa
118 4.9 3.1 1.5 0.1 Iris-setosa
119 6.5 3.0 5.2 2.0 Iris-virginica
120 4.9 3.1 1.5 0.1 Iris-setosa
121 6.3 2.3 4.4 1.3 Iris-versicolor
122 6.2 2.2 4.5 1.5 Iris-versicolor
123 5.7 3.8 1.7 0.3 Iris-setosa
124 6.4 2.8 5.6 2.1 Iris-virginica
125 4.9 2.4 3.3 1.0 Iris-versicolor
126 5.7 2.5 5.0 2.0 Iris-virginica
127 5.5 4.2 1.4 0.2 Iris-setosa
128 6.7 3.0 5.0 1.7 Iris-versicolor
129 5.0 3.3 1.4 0.2 Iris-setosa
130 6.3 2.5 4.9 1.5 Iris-versicolor
131 5.4 3.7 1.5 0.2 Iris-setosa
132 7.7 2.6 6.9 2.3 Iris-virginica
133 5.7 3.0 4.2 1.2 Iris-versicolor
134 7.6 3.0 6.6 2.1 Iris-virginica
135 4.8 3.1 1.6 0.2 Iris-setosa
136 5.6 2.8 4.9 2.0 Iris-virginica
137 4.5 2.3 1.3 0.3 Iris-setosa
138 6.8 3.2 5.9 2.3 Iris-virginica
139 6.3 3.3 6.0 2.5 Iris-virginica
140 4.6 3.4 1.4 0.3 Iris-setosa
141 5.8 2.7 3.9 1.2 Iris-versicolor
142 5.5 2.3 4.0 1.3 Iris-versicolor
143 5.2 4.1 1.5 0.1 Iris-setosa
144 6.6 2.9 4.6 1.3 Iris-versicolor
145 4.3 3.0 1.1 0.1 Iris-setosa
146 6.8 3.0 5.5 2.1 Iris-virginica
147 5.8 4.0 1.2 0.2 Iris-setosa
148 5.1 3.5 1.4 0.3 Iris-setosa
149 6.5 3.0 5.8 2.2 Iris-virginica
150 6.9 3.1 5.4 2.1 Iris-virginica
151 6.7 3.3 5.7 2.1 Iris-virginica

BIN
w4/zumz184.zip Normal file

Binary file not shown.

816
w4/zumz4a.ipynb Normal file

File diff suppressed because one or more lines are too long

BIN
w4/zumz4a.pdf Normal file

Binary file not shown.

1202
w4/zumz4b.ipynb Normal file

File diff suppressed because one or more lines are too long

BIN
w4/zumz4b.pdf Normal file

Binary file not shown.

BIN
w5/ad0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
w5/ad1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
w5/ad2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
w5/exp1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
w5/exp2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
w5/exp3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

151
w5/iris.csv Normal file
View File

@ -0,0 +1,151 @@
łod.dł.,łod.sz.,pł.dł.,pł.sz.,Gatunek
5.2,3.4,1.4,0.2,Iris-setosa
5.1,3.7,1.5,0.4,Iris-setosa
6.7,3.1,5.6,2.4,Iris-virginica
6.5,3.2,5.1,2.0,Iris-virginica
4.9,2.5,4.5,1.7,Iris-virginica
6.0,2.7,5.1,1.6,Iris-versicolor
5.7,2.6,3.5,1.0,Iris-versicolor
5.0,2.0,3.5,1.0,Iris-versicolor
5.2,3.5,1.5,0.2,Iris-setosa
4.8,3.0,1.4,0.1,Iris-setosa
6.7,3.3,5.7,2.5,Iris-virginica
6.1,3.0,4.9,1.8,Iris-virginica
4.8,3.4,1.9,0.2,Iris-setosa
5.8,2.8,5.1,2.4,Iris-virginica
4.4,2.9,1.4,0.2,Iris-setosa
7.2,3.0,5.8,1.6,Iris-virginica
4.4,3.2,1.3,0.2,Iris-setosa
5.0,3.5,1.3,0.3,Iris-setosa
5.4,3.9,1.3,0.4,Iris-setosa
7.7,2.8,6.7,2.0,Iris-virginica
5.0,3.6,1.4,0.2,Iris-setosa
6.2,2.8,4.8,1.8,Iris-virginica
6.0,2.2,5.0,1.5,Iris-virginica
7.4,2.8,6.1,1.9,Iris-virginica
5.0,3.2,1.2,0.2,Iris-setosa
6.7,3.1,4.4,1.4,Iris-versicolor
6.7,3.1,4.7,1.5,Iris-versicolor
5.6,2.7,4.2,1.3,Iris-versicolor
5.6,2.5,3.9,1.1,Iris-versicolor
6.3,3.3,4.7,1.6,Iris-versicolor
5.1,3.4,1.5,0.2,Iris-setosa
6.0,2.9,4.5,1.5,Iris-versicolor
5.3,3.7,1.5,0.2,Iris-setosa
5.6,2.9,3.6,1.3,Iris-versicolor
5.5,2.5,4.0,1.3,Iris-versicolor
5.5,2.4,3.7,1.0,Iris-versicolor
4.4,3.0,1.3,0.2,Iris-setosa
6.6,3.0,4.4,1.4,Iris-versicolor
7.9,3.8,6.4,2.0,Iris-virginica
5.7,2.8,4.1,1.3,Iris-versicolor
5.8,2.7,4.1,1.0,Iris-versicolor
6.5,2.8,4.6,1.5,Iris-versicolor
6.1,2.8,4.7,1.2,Iris-versicolor
5.1,3.8,1.9,0.4,Iris-setosa
5.0,3.4,1.6,0.4,Iris-setosa
5.5,2.6,4.4,1.2,Iris-versicolor
5.0,3.4,1.5,0.2,Iris-setosa
6.8,2.8,4.8,1.4,Iris-versicolor
6.9,3.1,4.9,1.5,Iris-versicolor
6.1,2.9,4.7,1.4,Iris-versicolor
5.1,3.8,1.6,0.2,Iris-setosa
6.4,3.2,5.3,2.3,Iris-virginica
6.4,2.7,5.3,1.9,Iris-virginica
5.7,2.8,4.5,1.3,Iris-versicolor
5.8,2.6,4.0,1.2,Iris-versicolor
4.7,3.2,1.6,0.2,Iris-setosa
5.1,3.3,1.7,0.5,Iris-setosa
4.9,3.1,1.5,0.1,Iris-setosa
6.3,3.4,5.6,2.4,Iris-virginica
5.1,3.8,1.5,0.3,Iris-setosa
7.0,3.2,4.7,1.4,Iris-versicolor
5.4,3.0,4.5,1.5,Iris-versicolor
6.0,2.2,4.0,1.0,Iris-versicolor
6.0,3.0,4.8,1.8,Iris-virginica
6.2,2.9,4.3,1.3,Iris-versicolor
5.6,3.0,4.1,1.3,Iris-versicolor
4.9,3.0,1.4,0.2,Iris-setosa
5.0,2.3,3.3,1.0,Iris-versicolor
6.3,2.5,5.0,1.9,Iris-virginica
4.8,3.4,1.6,0.2,Iris-setosa
5.9,3.0,4.2,1.5,Iris-versicolor
4.6,3.6,1.0,0.2,Iris-setosa
5.0,3.5,1.6,0.6,Iris-setosa
5.7,4.4,1.5,0.4,Iris-setosa
5.0,3.0,1.6,0.2,Iris-setosa
5.6,3.0,4.5,1.5,Iris-versicolor
6.3,2.8,5.1,1.5,Iris-virginica
5.2,2.7,3.9,1.4,Iris-versicolor
5.9,3.2,4.8,1.8,Iris-versicolor
7.7,3.0,6.1,2.3,Iris-virginica
6.2,3.4,5.4,2.3,Iris-virginica
6.4,2.9,4.3,1.3,Iris-versicolor
6.5,3.0,5.5,1.8,Iris-virginica
5.8,2.7,5.1,1.9,Iris-virginica
6.9,3.2,5.7,2.3,Iris-virginica
6.4,2.8,5.6,2.2,Iris-virginica
4.7,3.2,1.3,0.2,Iris-setosa
5.5,2.4,3.8,1.1,Iris-versicolor
5.4,3.4,1.5,0.4,Iris-setosa
7.2,3.6,6.1,2.5,Iris-virginica
6.7,2.5,5.8,1.8,Iris-virginica
6.1,3.0,4.6,1.4,Iris-versicolor
6.0,3.4,4.5,1.6,Iris-versicolor
6.3,2.7,4.9,1.8,Iris-virginica
6.9,3.1,5.1,2.3,Iris-virginica
5.5,3.5,1.3,0.2,Iris-setosa
6.7,3.0,5.2,2.3,Iris-virginica
4.6,3.1,1.5,0.2,Iris-setosa
5.8,2.7,5.1,1.9,Iris-virginica
6.4,3.1,5.5,1.8,Iris-virginica
7.3,2.9,6.3,1.8,Iris-virginica
4.8,3.0,1.4,0.3,Iris-setosa
7.1,3.0,5.9,2.1,Iris-virginica
5.9,3.0,5.1,1.8,Iris-virginica
6.1,2.6,5.6,1.4,Iris-virginica
5.4,3.9,1.7,0.4,Iris-setosa
6.4,3.2,4.5,1.5,Iris-versicolor
5.1,2.5,3.0,1.1,Iris-versicolor
6.3,2.9,5.6,1.8,Iris-virginica
7.2,3.2,6.0,1.8,Iris-virginica
5.4,3.4,1.7,0.2,Iris-setosa
4.6,3.2,1.4,0.2,Iris-setosa
6.1,2.8,4.0,1.3,Iris-versicolor
7.7,3.8,6.7,2.2,Iris-virginica
5.7,2.9,4.2,1.3,Iris-versicolor
5.1,3.5,1.4,0.2,Iris-setosa
4.9,3.1,1.5,0.1,Iris-setosa
6.5,3.0,5.2,2.0,Iris-virginica
4.9,3.1,1.5,0.1,Iris-setosa
6.3,2.3,4.4,1.3,Iris-versicolor
6.2,2.2,4.5,1.5,Iris-versicolor
5.7,3.8,1.7,0.3,Iris-setosa
6.4,2.8,5.6,2.1,Iris-virginica
4.9,2.4,3.3,1.0,Iris-versicolor
5.7,2.5,5.0,2.0,Iris-virginica
5.5,4.2,1.4,0.2,Iris-setosa
6.7,3.0,5.0,1.7,Iris-versicolor
5.0,3.3,1.4,0.2,Iris-setosa
6.3,2.5,4.9,1.5,Iris-versicolor
5.4,3.7,1.5,0.2,Iris-setosa
7.7,2.6,6.9,2.3,Iris-virginica
5.7,3.0,4.2,1.2,Iris-versicolor
7.6,3.0,6.6,2.1,Iris-virginica
4.8,3.1,1.6,0.2,Iris-setosa
5.6,2.8,4.9,2.0,Iris-virginica
4.5,2.3,1.3,0.3,Iris-setosa
6.8,3.2,5.9,2.3,Iris-virginica
6.3,3.3,6.0,2.5,Iris-virginica
4.6,3.4,1.4,0.3,Iris-setosa
5.8,2.7,3.9,1.2,Iris-versicolor
5.5,2.3,4.0,1.3,Iris-versicolor
5.2,4.1,1.5,0.1,Iris-setosa
6.6,2.9,4.6,1.3,Iris-versicolor
4.3,3.0,1.1,0.1,Iris-setosa
6.8,3.0,5.5,2.1,Iris-virginica
5.8,4.0,1.2,0.2,Iris-setosa
5.1,3.5,1.4,0.3,Iris-setosa
6.5,3.0,5.8,2.2,Iris-virginica
6.9,3.1,5.4,2.1,Iris-virginica
6.7,3.3,5.7,2.1,Iris-virginica
1 łod.dł. łod.sz. pł.dł. pł.sz. Gatunek
2 5.2 3.4 1.4 0.2 Iris-setosa
3 5.1 3.7 1.5 0.4 Iris-setosa
4 6.7 3.1 5.6 2.4 Iris-virginica
5 6.5 3.2 5.1 2.0 Iris-virginica
6 4.9 2.5 4.5 1.7 Iris-virginica
7 6.0 2.7 5.1 1.6 Iris-versicolor
8 5.7 2.6 3.5 1.0 Iris-versicolor
9 5.0 2.0 3.5 1.0 Iris-versicolor
10 5.2 3.5 1.5 0.2 Iris-setosa
11 4.8 3.0 1.4 0.1 Iris-setosa
12 6.7 3.3 5.7 2.5 Iris-virginica
13 6.1 3.0 4.9 1.8 Iris-virginica
14 4.8 3.4 1.9 0.2 Iris-setosa
15 5.8 2.8 5.1 2.4 Iris-virginica
16 4.4 2.9 1.4 0.2 Iris-setosa
17 7.2 3.0 5.8 1.6 Iris-virginica
18 4.4 3.2 1.3 0.2 Iris-setosa
19 5.0 3.5 1.3 0.3 Iris-setosa
20 5.4 3.9 1.3 0.4 Iris-setosa
21 7.7 2.8 6.7 2.0 Iris-virginica
22 5.0 3.6 1.4 0.2 Iris-setosa
23 6.2 2.8 4.8 1.8 Iris-virginica
24 6.0 2.2 5.0 1.5 Iris-virginica
25 7.4 2.8 6.1 1.9 Iris-virginica
26 5.0 3.2 1.2 0.2 Iris-setosa
27 6.7 3.1 4.4 1.4 Iris-versicolor
28 6.7 3.1 4.7 1.5 Iris-versicolor
29 5.6 2.7 4.2 1.3 Iris-versicolor
30 5.6 2.5 3.9 1.1 Iris-versicolor
31 6.3 3.3 4.7 1.6 Iris-versicolor
32 5.1 3.4 1.5 0.2 Iris-setosa
33 6.0 2.9 4.5 1.5 Iris-versicolor
34 5.3 3.7 1.5 0.2 Iris-setosa
35 5.6 2.9 3.6 1.3 Iris-versicolor
36 5.5 2.5 4.0 1.3 Iris-versicolor
37 5.5 2.4 3.7 1.0 Iris-versicolor
38 4.4 3.0 1.3 0.2 Iris-setosa
39 6.6 3.0 4.4 1.4 Iris-versicolor
40 7.9 3.8 6.4 2.0 Iris-virginica
41 5.7 2.8 4.1 1.3 Iris-versicolor
42 5.8 2.7 4.1 1.0 Iris-versicolor
43 6.5 2.8 4.6 1.5 Iris-versicolor
44 6.1 2.8 4.7 1.2 Iris-versicolor
45 5.1 3.8 1.9 0.4 Iris-setosa
46 5.0 3.4 1.6 0.4 Iris-setosa
47 5.5 2.6 4.4 1.2 Iris-versicolor
48 5.0 3.4 1.5 0.2 Iris-setosa
49 6.8 2.8 4.8 1.4 Iris-versicolor
50 6.9 3.1 4.9 1.5 Iris-versicolor
51 6.1 2.9 4.7 1.4 Iris-versicolor
52 5.1 3.8 1.6 0.2 Iris-setosa
53 6.4 3.2 5.3 2.3 Iris-virginica
54 6.4 2.7 5.3 1.9 Iris-virginica
55 5.7 2.8 4.5 1.3 Iris-versicolor
56 5.8 2.6 4.0 1.2 Iris-versicolor
57 4.7 3.2 1.6 0.2 Iris-setosa
58 5.1 3.3 1.7 0.5 Iris-setosa
59 4.9 3.1 1.5 0.1 Iris-setosa
60 6.3 3.4 5.6 2.4 Iris-virginica
61 5.1 3.8 1.5 0.3 Iris-setosa
62 7.0 3.2 4.7 1.4 Iris-versicolor
63 5.4 3.0 4.5 1.5 Iris-versicolor
64 6.0 2.2 4.0 1.0 Iris-versicolor
65 6.0 3.0 4.8 1.8 Iris-virginica
66 6.2 2.9 4.3 1.3 Iris-versicolor
67 5.6 3.0 4.1 1.3 Iris-versicolor
68 4.9 3.0 1.4 0.2 Iris-setosa
69 5.0 2.3 3.3 1.0 Iris-versicolor
70 6.3 2.5 5.0 1.9 Iris-virginica
71 4.8 3.4 1.6 0.2 Iris-setosa
72 5.9 3.0 4.2 1.5 Iris-versicolor
73 4.6 3.6 1.0 0.2 Iris-setosa
74 5.0 3.5 1.6 0.6 Iris-setosa
75 5.7 4.4 1.5 0.4 Iris-setosa
76 5.0 3.0 1.6 0.2 Iris-setosa
77 5.6 3.0 4.5 1.5 Iris-versicolor
78 6.3 2.8 5.1 1.5 Iris-virginica
79 5.2 2.7 3.9 1.4 Iris-versicolor
80 5.9 3.2 4.8 1.8 Iris-versicolor
81 7.7 3.0 6.1 2.3 Iris-virginica
82 6.2 3.4 5.4 2.3 Iris-virginica
83 6.4 2.9 4.3 1.3 Iris-versicolor
84 6.5 3.0 5.5 1.8 Iris-virginica
85 5.8 2.7 5.1 1.9 Iris-virginica
86 6.9 3.2 5.7 2.3 Iris-virginica
87 6.4 2.8 5.6 2.2 Iris-virginica
88 4.7 3.2 1.3 0.2 Iris-setosa
89 5.5 2.4 3.8 1.1 Iris-versicolor
90 5.4 3.4 1.5 0.4 Iris-setosa
91 7.2 3.6 6.1 2.5 Iris-virginica
92 6.7 2.5 5.8 1.8 Iris-virginica
93 6.1 3.0 4.6 1.4 Iris-versicolor
94 6.0 3.4 4.5 1.6 Iris-versicolor
95 6.3 2.7 4.9 1.8 Iris-virginica
96 6.9 3.1 5.1 2.3 Iris-virginica
97 5.5 3.5 1.3 0.2 Iris-setosa
98 6.7 3.0 5.2 2.3 Iris-virginica
99 4.6 3.1 1.5 0.2 Iris-setosa
100 5.8 2.7 5.1 1.9 Iris-virginica
101 6.4 3.1 5.5 1.8 Iris-virginica
102 7.3 2.9 6.3 1.8 Iris-virginica
103 4.8 3.0 1.4 0.3 Iris-setosa
104 7.1 3.0 5.9 2.1 Iris-virginica
105 5.9 3.0 5.1 1.8 Iris-virginica
106 6.1 2.6 5.6 1.4 Iris-virginica
107 5.4 3.9 1.7 0.4 Iris-setosa
108 6.4 3.2 4.5 1.5 Iris-versicolor
109 5.1 2.5 3.0 1.1 Iris-versicolor
110 6.3 2.9 5.6 1.8 Iris-virginica
111 7.2 3.2 6.0 1.8 Iris-virginica
112 5.4 3.4 1.7 0.2 Iris-setosa
113 4.6 3.2 1.4 0.2 Iris-setosa
114 6.1 2.8 4.0 1.3 Iris-versicolor
115 7.7 3.8 6.7 2.2 Iris-virginica
116 5.7 2.9 4.2 1.3 Iris-versicolor
117 5.1 3.5 1.4 0.2 Iris-setosa
118 4.9 3.1 1.5 0.1 Iris-setosa
119 6.5 3.0 5.2 2.0 Iris-virginica
120 4.9 3.1 1.5 0.1 Iris-setosa
121 6.3 2.3 4.4 1.3 Iris-versicolor
122 6.2 2.2 4.5 1.5 Iris-versicolor
123 5.7 3.8 1.7 0.3 Iris-setosa
124 6.4 2.8 5.6 2.1 Iris-virginica
125 4.9 2.4 3.3 1.0 Iris-versicolor
126 5.7 2.5 5.0 2.0 Iris-virginica
127 5.5 4.2 1.4 0.2 Iris-setosa
128 6.7 3.0 5.0 1.7 Iris-versicolor
129 5.0 3.3 1.4 0.2 Iris-setosa
130 6.3 2.5 4.9 1.5 Iris-versicolor
131 5.4 3.7 1.5 0.2 Iris-setosa
132 7.7 2.6 6.9 2.3 Iris-virginica
133 5.7 3.0 4.2 1.2 Iris-versicolor
134 7.6 3.0 6.6 2.1 Iris-virginica
135 4.8 3.1 1.6 0.2 Iris-setosa
136 5.6 2.8 4.9 2.0 Iris-virginica
137 4.5 2.3 1.3 0.3 Iris-setosa
138 6.8 3.2 5.9 2.3 Iris-virginica
139 6.3 3.3 6.0 2.5 Iris-virginica
140 4.6 3.4 1.4 0.3 Iris-setosa
141 5.8 2.7 3.9 1.2 Iris-versicolor
142 5.5 2.3 4.0 1.3 Iris-versicolor
143 5.2 4.1 1.5 0.1 Iris-setosa
144 6.6 2.9 4.6 1.3 Iris-versicolor
145 4.3 3.0 1.1 0.1 Iris-setosa
146 6.8 3.0 5.5 2.1 Iris-virginica
147 5.8 4.0 1.2 0.2 Iris-setosa
148 5.1 3.5 1.4 0.3 Iris-setosa
149 6.5 3.0 5.8 2.2 Iris-virginica
150 6.9 3.1 5.4 2.1 Iris-virginica
151 6.7 3.3 5.7 2.1 Iris-virginica

BIN
w5/multireglog.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
w5/nn1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
w5/nn2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
w5/nn3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
w5/perceptron.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

BIN
w5/reglin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

BIN
w5/reglog.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

BIN
w5/zumz185.zip Normal file

Binary file not shown.

2634
w5/zumz5.ipynb Normal file

File diff suppressed because one or more lines are too long

BIN
w5/zumz5.pdf Normal file

Binary file not shown.