added test data for runALLclfs
This commit is contained in:
parent
c666c426c0
commit
6be17e3e3e
10 changed files with 113 additions and 741 deletions
|
@ -15,9 +15,16 @@ drug = 'streptomycin'
|
|||
homedir = os.path.expanduser("~")
|
||||
os.chdir( homedir + '/git/ML_AI_training/')
|
||||
|
||||
from UQ_ML_data import *
|
||||
#---------------------------
|
||||
# Version 1: no AAindex
|
||||
#from UQ_ML_data import *
|
||||
#setvars(gene,drug)
|
||||
#from UQ_ML_data import *
|
||||
#---------------------------
|
||||
|
||||
from UQ_ML_data2 import *
|
||||
setvars(gene,drug)
|
||||
from UQ_ML_data import *
|
||||
from UQ_ML_data2 import *
|
||||
|
||||
# from YC run_all_ML: run locally
|
||||
#from UQ_yc_RunAllClfs import run_all_ML
|
||||
|
@ -43,6 +50,12 @@ print('Strucutral features (n):'
|
|||
, '\nOther struc columns:', X_str
|
||||
, '\n================================================================\n')
|
||||
|
||||
print('AAindex features (n):'
|
||||
, len(X_aaindexFN)
|
||||
, '\nThese are:\n'
|
||||
, X_aaindexFN
|
||||
, '\n================================================================\n')
|
||||
|
||||
print('Evolutionary features (n):'
|
||||
, len(X_evolFN)
|
||||
, '\nThese are:\n'
|
||||
|
@ -62,15 +75,14 @@ print('Categorical features (n):'
|
|||
, categorical_FN
|
||||
, '\n================================================================\n')
|
||||
|
||||
if ( len(X.columns) == len(X_ssFN) +len(X_evolFN) + len(X_genomicFN) + len(categorical_FN) ):
|
||||
if ( len(X.columns) == len(X_ssFN) + len(X_aaindexFN) + len(X_evolFN) + len(X_genomicFN) + len(categorical_FN) ):
|
||||
print('\nPass: No. of features match')
|
||||
else:
|
||||
print('\nFail: Count of feature mismatch')
|
||||
sys.exit('\nFail: Count of feature mismatch')
|
||||
|
||||
print('\n#####################################################################\n')
|
||||
|
||||
################################################################################
|
||||
|
||||
#==================
|
||||
# Baseline models
|
||||
#==================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue