added Mult_clfs_logo and Mult_clsf.py with consistency
This commit is contained in:
parent
06f2ce97b6
commit
de5c1270be
5 changed files with 201 additions and 115 deletions
|
@ -105,6 +105,7 @@ def CMLogoSkf(cm_input_df
|
|||
, target_var = 'dst_mode'
|
||||
, gene_group = 'gene_name'
|
||||
, std_gene_omit = []
|
||||
, output_dir = outdir
|
||||
, file_suffix = ""
|
||||
):
|
||||
|
||||
|
@ -138,7 +139,7 @@ def CMLogoSkf(cm_input_df
|
|||
# else:
|
||||
# file_suffix = file_suffix
|
||||
|
||||
outFile = outdir + str(n_tr_genes+1) + "genes_" + tts_split_type + '_' + file_suffix + ".csv"
|
||||
outFile = output_dir + str(n_tr_genes+1) + "genes_" + tts_split_type + '_' + file_suffix + ".csv"
|
||||
|
||||
print(outFile)
|
||||
|
||||
|
@ -170,7 +171,7 @@ def CMLogoSkf(cm_input_df
|
|||
#cm_bts_y = cm_test_df.loc[:, 'dst_mode']
|
||||
cm_bts_y = cm_test_df.loc[:, target_var]
|
||||
|
||||
print('\nTEST data dim:', cm_bts_X.shape
|
||||
print('\nTEST data dim:' , cm_bts_X.shape
|
||||
, '\nTEST Target dim:', cm_bts_y.shape)
|
||||
|
||||
print("Running Multiple models on LOGO with SKF")
|
||||
|
@ -209,4 +210,4 @@ def CMLogoSkf(cm_input_df
|
|||
# Actual Data
|
||||
#===============
|
||||
CMLogoSkf(cm_input_df = combined_df_actual, file_suffix = "actual")
|
||||
CMLogoSkf(cm_input_df = combined_df_actual, std_gene_omit=['alr'], file_suffix = "actual")
|
||||
# CMLogoSkf(cm_input_df = combined_df_actual, std_gene_omit=['alr'], file_suffix = "actual")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue