added combined model FS code and run script
This commit is contained in:
parent
78704dec5a
commit
2b953583e2
7 changed files with 1046 additions and 0 deletions
32
scripts/ml/combined_model/run_cm_logo.py
Normal file
32
scripts/ml/combined_model/run_cm_logo.py
Normal file
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Created on Sat Sep 3 09:43:22 2022
|
||||
|
||||
@author: tanu
|
||||
"""
|
||||
|
||||
###############################################################################
|
||||
homedir = os.path.expanduser("~")
|
||||
sys.path.append(homedir + '/home/tanu/git/LSHTM_analysis/scripts/ml/combined_model')
|
||||
sys.path.append(homedir + '/home/tanu/git/LSHTM_analysis/scripts/ml/ml_functions')
|
||||
sys.path.append(homedir + '/home/tanu/git/LSHTM_analysis/scripts/ml')
|
||||
|
||||
from MultClfs import *
|
||||
###############################################################################
|
||||
|
||||
#%% RUN: Combined model Baseline
|
||||
outdir_cg = "/home/tanu/git/LSHTM_ML/output/combined/"
|
||||
#===============
|
||||
# Complete Data
|
||||
#===============
|
||||
CombinedModelML(cm_input_df = combined_df, outdir = outdir_cg, file_suffix = "complete")
|
||||
CombinedModelML(cm_input_df = combined_df, outdir = outdir_cg, std_gene_omit=['alr'], file_suffix = "complete")
|
||||
|
||||
#===============
|
||||
# Actual Data
|
||||
#===============
|
||||
CombinedModelML(cm_input_df = combined_df_actual, outdir = outdir_cg, file_suffix = "actual")
|
||||
CombinedModelML(cm_input_df = combined_df_actual, outdir = outdir_cg, std_gene_omit=['alr'], file_suffix = "actual")
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue