File tree Expand file tree Collapse file tree 1 file changed +69
-0
lines changed
Expand file tree Collapse file tree 1 file changed +69
-0
lines changed Original file line number Diff line number Diff line change 1+ Load data
2+ Train RF with OOB estimators
3+ Train RF without OOB estimators
4+ Fitting models
5+ Save AMP model
6+ Predict test
7+ # AMP (unbalanced training) CLASSIFIER
8+ Accuracy: 0.926
9+ MCC: 0.862
10+
11+ Confusion matrix:
12+ [[784 136]
13+ [ 0 920]]
14+
15+ precision recall f1-score support
16+
17+ AMP 1.000 0.852 0.920 920
18+ NAMP 0.871 1.000 0.931 920
19+
20+ accuracy 0.926 1840
21+ macro avg 0.936 0.926 0.926 1840
22+ weighted avg 0.936 0.926 0.926 1840
23+
24+
25+
26+ Load bench set
27+ Train bench set
28+ Test bench set
29+ # AMP (benchmark training) CLASSIFIER
30+ Accuracy: 0.946
31+ MCC: 0.893
32+
33+ Confusion matrix:
34+ [[846 74]
35+ [ 26 894]]
36+
37+ precision recall f1-score support
38+
39+ AMP 0.970 0.920 0.944 920
40+ NAMP 0.924 0.972 0.947 920
41+
42+ accuracy 0.946 1840
43+ macro avg 0.947 0.946 0.946 1840
44+ weighted avg 0.947 0.946 0.946 1840
45+
46+
47+
48+ Load datasets
49+ Fit Hemo sets
50+ Save Hemo model
51+ # Hemo CLASSIFIER
52+ Accuracy: 0.936
53+ MCC: 0.873
54+
55+ Confusion matrix:
56+ [[102 8]
57+ [ 6 104]]
58+
59+ precision recall f1-score support
60+
61+ Hemo 0.944 0.927 0.936 110
62+ NonHemo 0.929 0.945 0.937 110
63+
64+ accuracy 0.936 220
65+ macro avg 0.937 0.936 0.936 220
66+ weighted avg 0.937 0.936 0.936 220
67+
68+ January 30th 2023
69+ scikit-learn 1.1.2
You can’t perform that action at this time.
0 commit comments