File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,7 @@ def test_all_hh_mod_ev(
57
57
"precision_test_mean" ,
58
58
"recall_test_mean" ,
59
59
"mcc_test_mean" ,
60
- "precision_train_mean" ,
61
- "recall_train_mean" ,
62
- "pr_auc_mean" ,
63
- "mcc_train_mean" ,
60
+ "pr_auc_test_mean" ,
64
61
]
65
62
66
63
# TODO we should expect to get most of these columns once the results reporting is finished.
@@ -75,14 +72,8 @@ def test_all_hh_mod_ev(
75
72
"recall_test_sd" ,
76
73
"mcc_test_sd" ,
77
74
"mcc_test_mean" ,
78
- "precision_train_mean" ,
79
- "precision_train_sd" ,
80
- "recall_train_mean" ,
81
- "recall_train_sd" ,
82
- "pr_auc_mean" ,
83
- "pr_auc_sd" ,
84
- "mcc_train_mean" ,
85
- "mcc_train_sd" ,
75
+ "pr_auc_test_mean" ,
76
+ "pr_auc_test_sd" ,
86
77
"maxDepth" ,
87
78
"numTrees" ,
88
79
]
@@ -97,7 +88,9 @@ def test_all_hh_mod_ev(
97
88
)
98
89
assert tr .query ("model == 'logistic_regression'" )["alpha_threshold" ].iloc [0 ] == 0.5
99
90
assert (
100
- 0.7 < tr .query ("model == 'logistic_regression'" )["pr_auc_mean" ].iloc [0 ] <= 1.0
91
+ 0.7
92
+ < tr .query ("model == 'logistic_regression'" )["pr_auc_test_mean" ].iloc [0 ]
93
+ <= 1.0
101
94
)
102
95
assert (
103
96
0.9
@@ -131,6 +124,8 @@ def test_all_hh_mod_ev(
131
124
assert 0.0 < pm0["second_best_prob"].iloc[0] < 0.5
132
125
"""
133
126
127
+ # Not saving predict-train test results anymore
128
+ """
134
129
pred_train = spark.table("hh_model_eval_predict_train").toPandas()
135
130
assert all(
136
131
elem in list(pred_train.columns)
@@ -145,6 +140,7 @@ def test_all_hh_mod_ev(
145
140
"match",
146
141
]
147
142
)
143
+ """
148
144
149
145
# TODO the exact links are different.
150
146
"""
You can’t perform that action at this time.
0 commit comments