saving work before adding uq stuff
This commit is contained in:
parent
5fe2dc47cd
commit
66ebb1a30a
6 changed files with 4 additions and 3 deletions
|
@ -61,8 +61,8 @@ from imblearn.combine import SMOTEENN
|
|||
from imblearn.under_sampling import EditedNearestNeighbours
|
||||
|
||||
#%%
|
||||
# rs = {'random_state': 42}
|
||||
# njobs = {'n_jobs': 10}
|
||||
rs = {'random_state': 42}
|
||||
njobs = {'n_jobs': 10}
|
||||
|
||||
scoring_fn = ({ 'fscore' : make_scorer(f1_score)
|
||||
, 'mcc' : make_scorer(matthews_corrcoef)
|
||||
|
|
|
@ -8,6 +8,7 @@ Created on Tue Mar 15 11:09:50 2022
|
|||
#%% Data
|
||||
X = all_df_wtgt[numerical_FN+categorical_FN]
|
||||
y = all_df_wtgt['mutation_class']
|
||||
#y = all_df_wtgt['dst_mode']
|
||||
#%% variables
|
||||
|
||||
#%% MultClassPipeSKFCV: function call()
|
||||
|
@ -21,3 +22,4 @@ mm_skf_scores_df_all = pd.DataFrame(mm_skf_scoresD)
|
|||
mm_skf_scores_df_all
|
||||
mm_skf_scores_df_test = mm_skf_scores_df_all.filter(like='test_', axis=0)
|
||||
mm_skf_scores_df_train = mm_skf_scores_df_all.filter(like='train_', axis=0) # helps to see if you trust the results
|
||||
]
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -99,7 +99,6 @@ from MultClassPipe2 import MultClassPipeline2
|
|||
from loopity_loop import MultClassPipeSKFLoop
|
||||
from MultClassPipe3 import MultClassPipeSKFCV
|
||||
|
||||
|
||||
gene = 'pncA'
|
||||
drug = 'pyrazinamide'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue