tidy script to run my versions of multiple modles with blind tests and also with oversampled data
This commit is contained in:
parent
b6f0308e42
commit
2898686bf8
3 changed files with 433 additions and 0 deletions
35
pnca_config.py
Normal file
35
pnca_config.py
Normal file
|
@ -0,0 +1,35 @@
|
|||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Created on Sat May 28 05:25:30 2022
|
||||
|
||||
@author: tanu
|
||||
"""
|
||||
import os, sys
|
||||
|
||||
def MyGlobalVars():
|
||||
global gene
|
||||
global drug
|
||||
global homedir
|
||||
gene = 'pncA'
|
||||
drug = 'pyrazinamide'
|
||||
homedir = os.path.expanduser("~")
|
||||
|
||||
MyGlobalVars()
|
||||
|
||||
os.chdir(homedir + "/git/ML_AI_training/")
|
||||
|
||||
# my function
|
||||
from UQ_MultClassPipe4 import MultClassPipeSKFCV
|
||||
from UQ_pnca_ML.py import *
|
||||
|
||||
#from scriptsfymcn import run_all_ML
|
||||
|
||||
|
||||
# YC_resD2 = run_all_ML(input_pd=X, target_label=y, blind_test_input_df=X_bts, blind_test_target=y_bts, preprocess = True, var_type = 'mixed')
|
||||
|
||||
# CVResultsDF = YC_resD2['CrossValResultsDF']
|
||||
# CVResultsDF.sort_values(by=['matthew'], ascending=False, inplace=True)
|
||||
# BTSResultsDF = YC_resD2['BlindTestResultsDF']
|
||||
# BTSResultsDF.sort_values(by=['matthew'], ascending=False, inplace=True)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue