minor changes to run combined_model

This commit is contained in:
Tanushree Tunstall 2022-07-10 13:23:13 +01:00
parent 057c98c2f1
commit 350be30f19
3 changed files with 13 additions and 22 deletions

View file

@ -90,10 +90,11 @@ scoring_fn = ({ 'mcc' : make_scorer(matthews_corrcoef)
, 'roc_auc' : make_scorer(roc_auc_score)
, 'jcc' : make_scorer(jaccard_score)
})
# for sel_cv
#skf_cv = StratifiedKFold(n_splits = 10
# #, shuffle = False, random_state= None)
# , shuffle = True,**rs)
# , shuffle = True, **rs)
#rskf_cv = RepeatedStratifiedKFold(n_splits = 10
# , n_repeats = 3
@ -188,15 +189,7 @@ def MultModelsCl_logo_skf(input_df
#%% Func globals
rs = {'random_state': random_state}
njobs = {'n_jobs': n_jobs}
skf_cv = StratifiedKFold(n_splits = 10
#, shuffle = False, random_state= None)
, shuffle = True,**rs)
rskf_cv = RepeatedStratifiedKFold(n_splits = 10
, n_repeats = 3
, **rs)
logo = LeaveOneGroupOut()
# select CV type:
# if group == None: