added test data for runALLclfs

This commit is contained in:
Tanushree Tunstall 2022-07-16 15:36:15 +01:00
parent c666c426c0
commit 6be17e3e3e
10 changed files with 113 additions and 741 deletions

View file

@ -192,6 +192,9 @@ def run_all_ML(input_pd, target_label, blind_test_input_df, blind_test_target, p
_roc_auc = round(roc_auc_score(y_pred, y), 3)
_tn, _fp, _fn, _tp = confusion_matrix(y_pred, y).ravel()
print('\nMCC on CV:', round(matthews_corrcoef(y_pred, y), 3))
# result_pd = result_pd.append(pd.DataFrame(np.column_stack([name
# , _tp, _tn
# , _fp , _fn
@ -219,6 +222,7 @@ def run_all_ML(input_pd, target_label, blind_test_input_df, blind_test_target, p
bts_predict = pipe.predict(blind_test_input_df)
bts_mcc_score = round(matthews_corrcoef(blind_test_target, bts_predict),2)
print('\nMCC on Blind test:' , bts_mcc_score)
#print('\nAccuracy on Blind test:', round(accuracy_score(blind_test_target, bts_predict),2))