-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: feature gen for sczbp text experiment
- Loading branch information
Showing
2 changed files
with
29 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...cts/scz_bp/feature_generation/text_experiment/scz_bp_text_experiment_generate_features.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from psycop.common.feature_generation.application_modules.generate_feature_set import ( | ||
generate_feature_set, | ||
) | ||
from psycop.common.feature_generation.application_modules.project_setup import ProjectInfo | ||
from psycop.common.global_utils.paths import OVARTACI_SHARED_DIR | ||
from psycop.projects.scz_bp.feature_generation.eligible_prediction_times.scz_bp_prediction_time_loader import ( | ||
SczBpCohort, | ||
) | ||
from psycop.projects.scz_bp.feature_generation.scz_bp_specify_features import SczBpFeatureSpecifier | ||
from psycop.projects.scz_bp.feature_generation.text_experiment.scz_bp_text_experiment_feature_spec import ( | ||
SczBpTextExperimentFeatures, | ||
) | ||
|
||
if __name__ == "__main__": | ||
generate_feature_set( | ||
project_info=ProjectInfo( | ||
project_name="scz_bp", project_path=OVARTACI_SHARED_DIR / "scz_bp" / "text_exp" | ||
), | ||
eligible_prediction_times=SczBpCohort.get_filtered_prediction_times_bundle().prediction_times.frame.to_pandas(), | ||
feature_specs=SczBpTextExperimentFeatures().get_feature_specs(lookbehind_days=[730]), | ||
# generate_in_chunks=True, # noqa: ERA001 | ||
# chunksize=10, # noqa: ERA001 | ||
feature_set_name="text_exp_730d", | ||
) |