modified loopity and multclass3 to have skf_cv as a parameters for cv

This commit is contained in:
Tanushree Tunstall 2022-03-17 18:17:58 +00:00
parent 97620c1bb0
commit d0c329a1d9
8 changed files with 161 additions and 127 deletions

View file

@ -5,22 +5,19 @@ Created on Fri Mar 11 11:15:50 2022
@author: tanu
"""
#%%
del(t3_res)
# t3_res = MultClassPipeSKF(input_df = numerical_features_df
# , y_targetF = target1
# , var_type = 'numerical'
# , skf_splits = 10)
# pp.pprint(t3_res)
# #print(t3_res)
#%% variables
rs = {'random_state': 42}
t3_res = MultClassPipeSKF(input_df = num_df_wtgt[numerical_FN]
, y_targetF = num_df_wtgt['mutation_class']
skf_cv = StratifiedKFold(n_splits = 10
#, shuffle = False, random_state= None)
, shuffle = True,**rs)
#%% MultClassPipeSKFLoop: function call()
t3_res = MultClassPipeSKFLoop(input_df = num_df_wtgt[numerical_FN]
, target = num_df_wtgt['mutation_class']
, var_type = 'numerical'
, skf_splits = 10)
, skf_cv = skf_cv)
pp.pprint(t3_res)
#print(t3_res)
################################################################
# extract items from wwithin a nested dict
#%% Classification Metrics we need to mean()