Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update l2g train and predict configs #109

Merged
merged 3 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions src/ot_orchestration/dags/config/genetics_etl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,34 +205,33 @@ nodes:
params:
step: locus_to_gene
step.run_mode: train
+step.session.extended_spark_conf: "{spark.kryoserializer.buffer.max:500m, spark.sql.autoBroadcastJoinThreshold:'-1'}"
step.wandb_run_name: 24.11_freeze10
step.cross_validate: false
step.hf_hub_repo_id: opentargets/locus_to_gene
step.hf_model_commit_message: 'chore: update model based on 24.11_freeze10 run'
step.model_path: '{release_dir}/locus_to_gene_model/classifier.skops'
# INPUTS
step.credible_set_path: '{release_dir}/credible_set'
step.variant_index_path: '{release_dir}/variant_index'
step.feature_matrix_path: '{release_dir}/locus_to_gene_feature_matrix'
step.gold_standard_curation_path: gs://genetics_etl_python_playground/input/l2g/gold_standard/curation.json
step.gene_interactions_path: gs://genetics_etl_python_playground/static_assets/interaction # OTP 23.12 data
step.hyperparameters.n_estimators: 100
step.hyperparameters.max_depth: 5
step.hyperparameters.loss: log_loss
+step.session.extended_spark_conf: "{spark.kryoserializer.buffer.max:500m, spark.sql.autoBroadcastJoinThreshold:'-1'}"
# OUTPUTS
step.model_path: '{release_dir}/locus_to_gene_model/classifier.skops'

- id: l2g_predict
prerequisites:
- l2g_train
params:
step: locus_to_gene
step.run_mode: predict
step.predictions_path: '{release_dir}/locus_to_gene_predictions'
step.feature_matrix_path: '{release_dir}/locus_to_gene_feature_matrix'
step.credible_set_path: '{release_dir}/credible_set'
step.download_from_hub: false
step.session.write_mode: overwrite
step.l2g_threshold: 0.05
step.model_path: gs://ot_orchestration/benchmarks/l2g/fm0/v5.1_best_cv/locus_to_gene_model/classifier.skops
step.download_from_hub: true
# INPUTS
step.hf_hub_repo_id: opentargets/locus_to_gene
step.session.write_mode: overwrite
step.feature_matrix_path: '{release_dir}/locus_to_gene_feature_matrix'
step.credible_set_path: '{release_dir}/credible_set'
# OUTPUTS
step.predictions_path: '{release_dir}/locus_to_gene_predictions'

- id: l2g_evidence
prerequisites:
Expand Down
16 changes: 6 additions & 10 deletions src/ot_orchestration/dags/config/gentropy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,42 +198,38 @@ steps:
# OUTPUTS
step.feature_matrix_path: '{release_uri}/output/l2g_feature_matrix'


l2g_training:
cluster_name: otg-etl
params:
step: locus_to_gene
step.run_mode: train
step.session.write_mode: ignore
+step.session.extended_spark_conf: "{spark.kryoserializer.buffer.max:500m, spark.sql.autoBroadcastJoinThreshold:'-1'}"
step.run_mode: train
step.hyperparameters.n_estimators: 100
step.hyperparameters.max_depth: 5
step.hyperparameters.loss: log_loss
step.wandb_run_name: '{l2g_training}'
step.cross_validate: false
step.hf_hub_repo_id: opentargets/locus_to_gene
step.hf_model_commit_message: 'chore: update model base model for {l2g_training} run'
# INPUTS
step.credible_set_path: '{release_uri}/output/credible_set'
step.variant_index_path: '{release_uri}/output/variant'
step.feature_matrix_path: '{release_uri}/output/l2g_feature_matrix'
step.gold_standard_curation_path: '{release_uri}/inputs/l2g/gold_standard.json'
step.gene_interactions_path: '{release_uri}/output/interaction'
# OUTPUTS
step.model_path: '{release_uri}/etc/model/locus_to_gene_model/classifier.skops'

l2g_prediction:
cluster_name: otg-etl
params:
step: locus_to_gene
step.run_mode: predict
step.session.write_mode: ignore
step.session.output_partitions: 1
step.run_mode: predict
step.l2g_threshold: 0.05
step.download_from_hub: false
step.hf_hub_repo_id: opentargets/locus_to_gene
step.download_from_hub: true
# INPUTS
step.hf_hub_repo_id: opentargets/locus_to_gene
step.feature_matrix_path: '{release_uri}/output/l2g_feature_matrix'
step.credible_set_path: '{release_uri}/output/credible_set'
step.model_path: '{release_uri}/etc/model/locus_to_gene_model/classifier.skops'
# OUTPUTS
step.predictions_path: '{release_uri}/output/l2g_prediction'

Expand Down
Loading