In [18]:
%run main.py
MSError when predicting the mean mean 0.222789115646
Logistic Regression MSError 0.111111111111
Accuracy of predicted test: 0.888888888889
/usr/local/lib/python2.7/dist-packages/matplotlib/pyplot.py:524: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`).
max_open_warning, RuntimeWarning)
In [19]:
train
Out[19]:
[array([1.943674977, 495.0, 21.26595125, 9.334421542000001, 19.42969956,
19.074641500000002, 1], dtype=object),
array([1.7852684140000001, 486.0, 22.02001854, 10.31612514, 22.28195004,
12.65251924, -30546], dtype=object),
array([4.27202381, 172.0, 18.93638911, 5.553412944, 18.54058662,
8.70012972, -15], dtype=object),
array([2.452955368, 503.0, 23.24256402, 11.14218545, 21.89917423,
15.24111728, -232], dtype=object),
array([16.81096944, 189.0, 21.22667574, 7.4242429229999995, 21.11030928,
16.04937765, 0], dtype=object),
array([1.166666667, 151.0, 19.61127598, 4.962514422, 18.81029116,
1.342160502, -5141], dtype=object),
array([2.029386344, 96.0, 17.14140442, 3.6131804080000003, 16.67139412,
10.309673599999998, -92], dtype=object),
array([3.467716535, 80.0, 15.51149041, 2.607931118, 14.91801034,
21.24719307, -221], dtype=object),
array([2.214374844, 134.0, 23.64384172, 6.3011586589999995, 22.07484524,
7.955135396, -91], dtype=object),
array([6.160891689, 493.0, 45.48845015, 29.61618516, 34.67327559,
14.07583823, -171], dtype=object),
array([1.84375, nan, 0.0, 0.0, 0.0, 3.531022648, -8781], dtype=object),
array([1.9166666669999999, 1316.0, 28.22240714, 18.82775557,
22.523653699999997, 2.154552651, -13751], dtype=object),
array([1.454212454, 338.0, 32.114732399999994, 13.4229484, 26.02539922,
16.34399993, -103], dtype=object),
array([1.265486726, 77.0, 17.09869863, 2.954073853, 17.90381284,
12.97995129, -561], dtype=object),
array([0.9826086959999999, 9.0, 12.67502547, 0.711512975, 12.47622708,
5.392393949, -4127], dtype=object),
array([1.508474576, 16.0, 9.739755998, 0.64978166, 8.763117925,
7.161149367, -13580], dtype=object),
array([1.192771084, 247.0, 24.81044263, 9.485791316, 25.435635100000002,
3.9820472110000003, -989], dtype=object),
array([4.095621909, 536.0, 19.12882968, 8.747574053, 19.33771946,
16.76187262, -432], dtype=object),
array([1.152753108, 289.0, 13.91313414, 4.172452503, 13.20190806,
12.06497915, -12193], dtype=object),
array([2.012847966, 35.0, 11.74850711, 1.247609913, 11.93803445,
10.12846677, -1911], dtype=object),
array([7.010764602999999, 128.0, 24.47026574, 6.565136241, 22.67182987,
26.69182245, -18480], dtype=object),
array([6.108785284, 194.0, 27.49781954, 10.6187021, 26.60465912,
12.15733189, -13], dtype=object),
array([1.717717718, 149.0, 15.19218147, 4.045309249, 16.04188975,
17.04634147, -8038], dtype=object),
array([1.30259366, 210.0, 13.75765901, 4.423811442, 17.13192126,
9.072958786000001, -431], dtype=object),
array([1.402230483, 238.0, 20.24032868, 6.6883124910000005, 19.25087293,
12.93032911, -1779], dtype=object),
array([4.516411379, 336.0, 23.85852936, 12.08370812, 24.48847338,
6.695388724, 0], dtype=object),
array([1.4375, 822.0, 29.87654275, 19.59042633, 27.37807063, 10.46405597,
-3049], dtype=object),
array([1.7017994859999999, 68.0, 13.33827111, 2.240729434, 13.78668837,
10.58084601, 1], dtype=object),
array([4.193548387, 43.0, 25.27621514, 4.6994107839999995, 24.21308324,
10.87263366, 0], dtype=object),
array([19.65076548, 342.0, 26.11861062, 11.97931445, 26.18929867,
16.29976739, 0], dtype=object),
array([6.338369165, 417.0, 24.57991195, 11.77786478, 24.50654025,
15.94008499, -12794], dtype=object),
array([1.466666667, 414.0, 24.45075541, 12.43384937, 28.59974775,
1.7098571569999998, -31561], dtype=object),
array([1.247844828, 38.0, 13.29152859, 1.418089805, 12.28533192,
12.39062572, -43], dtype=object),
array([4.190077877, 381.0, 26.24189704, 10.79732374, 23.53951361,
12.69331814, -222], dtype=object),
array([1.485333333, 221.0, 27.974918300000002, 10.80214072, 26.65104312,
7.8995380079999995, -372], dtype=object),
array([2.7724867719999997, 140.0, 19.56810437, 5.072069205, 18.95046182,
8.360582177000001, -238], dtype=object),
array([1.389570552, 128.0, 35.76192331, 12.49846348, 29.192196600000003,
13.95378949, 0], dtype=object),
array([1.285714286, 403.0, 18.60786965, 7.948727132, 18.65525657,
9.989933684, -7112], dtype=object),
array([5.179464017, 189.0, 22.59068844, 6.690914706, 21.15373599,
15.26078906, -4445], dtype=object),
array([6.468968192, 416.0, 23.1976027, 12.05011026, 22.81582673,
12.69600485, 0], dtype=object),
array([2.378861789, 526.0, 23.39341416, 13.82530368, 24.06572454,
5.964078223, 4067], dtype=object),
array([3.0577544430000003, 42.0, 17.75582073, 2.077768423, 15.38032398,
11.6884629, -8029], dtype=object),
array([1.8347107440000001, 479.0, 18.92653292, 8.843011739, 19.43880657,
5.446723127, -4136], dtype=object),
array([1.4987199180000002, 299.0, 21.52176775, 8.401296997000001,
22.76966788, 17.89740717, -1353], dtype=object),
array([1.430136986, 448.0, 23.38143139, 11.34868553, 23.63109387,
20.04356697, -24717], dtype=object),
array([2.857142857, 361.0, 15.83782779, 6.0797469710000005, 16.00809925,
5.331227301, -5140], dtype=object),
array([11.00658572, 358.0, 24.03769954, 10.95694224, 22.939323100000003,
16.08795822, -107], dtype=object),
array([1.380597015, 398.0, 17.56232697, 7.363171097, 17.90791149,
11.83474152, -21842], dtype=object),
array([1.3944636680000002, 493.0, 23.14661468, 11.76684453, 24.12589965,
3.811875257, -23249], dtype=object),
array([1.605217391, 121.0, 26.99916693, 8.794161186, 27.16329172,
7.862267425, -1470], dtype=object),
array([1.4538852580000001, 1.0, 4.849363622, 0.10691160400000001,
6.119809117000001, 16.84814586, -11868], dtype=object),
array([1.8735244519999998, 2.0, 29.31683068, 0.9882384679999999,
20.60764042, 10.25609533, -1246], dtype=object),
array([1.4943181819999998, 423.0, 22.22773414, 10.40484101, 21.51054516,
8.390489358, -6755], dtype=object),
array([1.093457944, 606.0, 21.01344816, 10.68736201, 20.07444407,
2.313041504, -22799], dtype=object),
array([1.922455574, 156.0, 19.46209649, 5.088470825, 18.73712263,
19.01310686, -465], dtype=object),
array([1.9306062819999998, 1140.0, 19.98991991, 12.81582839, 18.23099695,
9.912109736, -529], dtype=object),
array([1.146341463, 253.0, 20.92669352, 7.184363782999999,
19.826838600000002, 4.688845073, -6412], dtype=object),
array([4.606377594, 75.0, 22.777677399999998, 4.607326533, 20.61914494,
15.68063286, -3849], dtype=object),
array([2.7060606060000003, 329.0, 38.23192686, 21.323030399999997,
31.11391948, 8.617740765, -16026], dtype=object),
array([4.176511832, 382.0, 22.51799003, 10.19478479, 21.74728758,
13.41555569, -1143], dtype=object),
array([9.25, 55.0, 17.91772637, 3.3134320460000004, 19.97692591,
11.31354492, 0], dtype=object),
array([3.4892055269999998, 89.0, 15.44063088, 2.7840720219999997,
14.68754057, 19.36163848, -1586], dtype=object),
array([2.8359293869999997, 227.0, 25.22447361, 9.085078937999999,
24.6231461, 12.37111375, -1294], dtype=object),
array([6.731468531, 131.0, 22.55129131, 6.3772982439999994, 21.57020629,
10.06236949, -489], dtype=object),
array([2.254691689, 37.0, 17.02892251, 2.1474417740000002, 18.00139951,
8.061394905, -7278], dtype=object),
array([2.243833017, 793.0, 21.87572209, 13.12888245, 21.73419876,
13.99463765, -8967], dtype=object),
array([1.5115384619999999, 470.0, 13.35073976, 5.475052174, 14.11552343,
7.813864929, -20276], dtype=object),
array([2.935119887, 3.0, 8.068688124, 0.222908524, 7.29636443, 10.34483964,
-62016], dtype=object),
array([1.6, 200.0, 20.17341533, 6.373602956, 21.54864914, 0.792538793,
-6614], dtype=object),
array([3.010638298, 281.0, 22.73269636, 7.959958222000001, 21.18169683,
3.0750490110000004, -75], dtype=object)]
In [ ]:
In [ ]:
Content source: Pablo1990/PhD-miscelanious
Similar notebooks: