From 8f28f560f951f0362d95a2b6d41f1976659c59d9 Mon Sep 17 00:00:00 2001 From: jalil Date: Mon, 2 Sep 2024 08:23:15 +0200 Subject: [PATCH] reg2 only theta median --- src/metrics/regression_2/main.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/metrics/regression_2/main.py b/src/metrics/regression_2/main.py index a46fb82ba..11d2400b8 100644 --- a/src/metrics/regression_2/main.py +++ b/src/metrics/regression_2/main.py @@ -283,19 +283,19 @@ def main(par: Dict[str, Any]) -> pd.DataFrame: # Evaluate GRN print(f'Compute metrics for layer: {layer}', flush=True) - print(f'Dynamic approach:', flush=True) - print(f'Static approach (theta=0):', flush=True) + # print(f'Dynamic approach:', flush=True) + # print(f'Static approach (theta=0):', flush=True) score_static_min = static_approach(grn, n_features_theta_min, X, groups, gene_names, tf_names, par['reg_type'], n_jobs=par['max_workers']) print(f'Static approach (theta=0.5):', flush=True) score_static_median = static_approach(grn, n_features_theta_median, X, groups, gene_names, tf_names, par['reg_type'], n_jobs=par['max_workers']) - print(f'Static approach (theta=1):', flush=True) - score_static_max = static_approach(grn, n_features_theta_max, X, groups, gene_names, tf_names, par['reg_type'], n_jobs=par['max_workers']) + # print(f'Static approach (theta=1):', flush=True) + # score_static_max = static_approach(grn, n_features_theta_max, X, groups, gene_names, tf_names, par['reg_type'], n_jobs=par['max_workers']) # TODO: find a mathematically sound way to combine Z-scores and r2 scores results = { - 'static-theta-0.0': [float(score_static_min)], - 'static-theta-0.5': [float(score_static_median)], - 'static-theta-1.0': [float(score_static_max)], + # 'static-theta-0.0': [float(score_static_min)], + 'static-theta-0.5': [float(score_static_median)] + # 'static-theta-1.0': [float(score_static_max)], } print(f'Scores on {layer}: {results}')