-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripts.py
More file actions
71 lines (66 loc) · 2.37 KB
/
scripts.py
File metadata and controls
71 lines (66 loc) · 2.37 KB
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
GaussianNB:
Training a GaussianNB using a training set size of 100. . .
Trained model in 0.0032 seconds
Made predictions in 0.0009 seconds.
F1 score for training set: 0.8550.
Made predictions in 0.0007 seconds.
F1 score for test set: 0.7481.
--------------------------------
Training a GaussianNB using a training set size of 200. . .
Trained model in 0.0025 seconds
Made predictions in 0.0010 seconds.
F1 score for training set: 0.8321.
Made predictions in 0.0008 seconds.
F1 score for test set: 0.7132.
--------------------------------
Training a GaussianNB using a training set size of 300. . .
Trained model in 0.0027 seconds
Made predictions in 0.0012 seconds.
F1 score for training set: 0.8088.
Made predictions in 0.0008 seconds.
F1 score for test set: 0.7500.
--------------------------------
DecisionTreeClassifier:
Training a DecisionTreeClassifier using a training set size of 100. . .
Trained model in 0.0025 seconds
Made predictions in 0.0003 seconds.
F1 score for training set: 1.0000.
Made predictions in 0.0003 seconds.
F1 score for test set: 0.6942.
--------------------------------
Training a DecisionTreeClassifier using a training set size of 200. . .
Trained model in 0.0046 seconds
Made predictions in 0.0003 seconds.
F1 score for training set: 1.0000.
Made predictions in 0.0003 seconds.
F1 score for test set: 0.7132.
--------------------------------
Training a DecisionTreeClassifier using a training set size of 300. . .
Trained model in 0.0067 seconds
Made predictions in 0.0005 seconds.
F1 score for training set: 1.0000.
Made predictions in 0.0002 seconds.
F1 score for test set: 0.7167.
--------------------------------
SVC:
Training a SVC using a training set size of 100. . .
Trained model in 0.0031 seconds
Made predictions in 0.0021 seconds.
F1 score for training set: 0.8591.
Made predictions in 0.0019 seconds.
F1 score for test set: 0.7838.
--------------------------------
Training a SVC using a training set size of 200. . .
Trained model in 0.0094 seconds
Made predictions in 0.0069 seconds.
F1 score for training set: 0.8693.
Made predictions in 0.0034 seconds.
F1 score for test set: 0.7755.
--------------------------------
Training a SVC using a training set size of 300. . .
Trained model in 0.0193 seconds
Made predictions in 0.0158 seconds.
F1 score for training set: 0.8692.
Made predictions in 0.0047 seconds.
F1 score for test set: 0.7586.
--------------------------------