git add UQ_imbalance.py
This commit is contained in:
parent
42c8c47e2d
commit
1da87ba177
4 changed files with 134 additions and 56 deletions
|
@ -81,7 +81,11 @@ from sklearn.model_selection import cross_validate, cross_val_score
|
|||
from sklearn.model_selection import RepeatedStratifiedKFold
|
||||
from sklearn.ensemble import AdaBoostClassifier
|
||||
from imblearn.combine import SMOTEENN
|
||||
from imblearn.combine import SMOTETomek
|
||||
|
||||
from imblearn.over_sampling import SMOTENC
|
||||
from imblearn.under_sampling import EditedNearestNeighbours
|
||||
from imblearn.under_sampling import RepeatedEditedNearestNeighbours
|
||||
|
||||
|
||||
from sklearn.model_selection import GridSearchCV
|
||||
|
@ -117,7 +121,8 @@ os.chdir(homedir + "/git/ML_AI_training/")
|
|||
#from MultClassPipe import MultClassPipeline
|
||||
from MultClassPipe2 import MultClassPipeline2
|
||||
from loopity_loop import MultClassPipeSKFLoop
|
||||
from MultClassPipe3 import MultClassPipeSKFCV
|
||||
#from MultClassPipe3 import MultClassPipeSKFCV
|
||||
from UQ_MultClassPipe4 import MultClassPipeSKFCV
|
||||
|
||||
gene = 'pncA'
|
||||
drug = 'pyrazinamide'
|
||||
|
@ -285,9 +290,9 @@ all_df_wtgt.shape
|
|||
#------
|
||||
# X
|
||||
#------
|
||||
#X = all_df_wtgt[numerical_FN + categorical_FN] # training data ALL
|
||||
X = all_df_wtgt[numerical_FN + categorical_FN] # training data ALL
|
||||
X_bts = blind_test_df[numerical_FN + categorical_FN] # blind test data ALL
|
||||
X = all_df_wtgt[numerical_FN] # training numerical only
|
||||
#X = all_df_wtgt[numerical_FN] # training numerical only
|
||||
#X_bts = blind_test_df[numerical_FN] # blind test data numerical
|
||||
|
||||
#------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue