Skip to content

Commit

Permalink
reg2 only theta median
Browse files Browse the repository at this point in the history
  • Loading branch information
janursa committed Sep 2, 2024
1 parent 0fc1eaf commit 8f28f56
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/metrics/regression_2/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}')

Expand Down

0 comments on commit 8f28f56

Please sign in to comment.