-
Notifications
You must be signed in to change notification settings - Fork 0
/
crossvalidation.py
107 lines (106 loc) · 2.64 KB
/
crossvalidation.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
mse = [
0.066523742795780147,
0.065296589252069812,
0.06500713704914772,
0.066264364532792483,
0.063353225480900152,
0.065206011055461491,
0.061019142281645213,
0.059774486586668986,
0.058050766013742441,
0.057458459564951339,
0.057171807763819617,
0.052580360197014453,
0.052747463346236298,
0.051347641467785879,
0.051279536519690125,
0.050706176278456541,
0.050035362032534711,
0.05017801553253215,
0.049314047916548524,
0.048593825001393913,
0.048653698760132529,
0.048438111382276113,
0.048301384181918747,
0.047901913077679485,
0.047356266110097016,
0.047073760752029119,
0.047318107492460001,
0.051848078967745195,
0.047321324587001376,
0.047382835113067553,
0.046547660275327134,
0.046042755496141237,
0.047242136113984756,
0.046142856099029586,
0.047549453915811432,
0.046219597341987835,
0.046468013255484643,
0.046148523808349662,
0.045347167917672362,
0.046099948666533434,
0.045348105173560034,
0.045083002073471885,
0.046092497390633487,
0.045334431131835211,
0.044984194887201227,
0.045021051866388384,
0.045414134751266273,
0.04486790470089181,
0.044660613411911812,
0.048176547869143813,
0.045254927526970468,
0.045117024584240155,
0.045575869483946312,
0.044637203428995846,
0.044434351065654791,
0.044453310803578554,
0.044723573423135918,
0.045179787750444088,
0.047943796759385308,
0.045139028213281265,
0.044443604995584696,
0.044628840148290806,
0.044179238940505905,
0.045066172715675083,
0.044537355704757579,
0.044874921710683476,
0.044185154381408465,
0.045632109655988233,
0.045705113368961922,
0.057212310289621496,
0.045141355224633861,
0.044504483920179957,
0.045959244426162657,
0.043996718683886993,
0.043990344821554832,
0.044481513969543536,
0.044761543606597169,
0.04481904177268399,
0.043939923435276508,
0.045480028677732535,
0.046213503221593837,
0.045083502283023213,
0.044905489627735058,
0.04396702358325439,
0.043835550575010811,
0.043879984488357275,
0.04411249287898094,
0.044586179231981278,
0.044222048484093966,
0.045214921004221878,
0.044672172258114907,
0.046828511409123925,
0.046277827271432204,
0.045441505537138389,
0.047608244145813501,
0.043864389244992356,
0.04402565955461675,
0.043819815554062107,
0.043654712578333865,
0.043728709649480599
]
import matplotlib.pyplot as plt
print mse
plt.plot([i for i in range(len(mse))], mse)
plt.show()