Aarhus-Psychiatry-Research / psycop-model-training

Shared code for model training and evaluation.
Other
1 stars 0 forks source link

chore: migrate to cruft template #407

Closed MartinBernstorff closed 1 year ago

MartinBernstorff commented 1 year ago

Notes for reviewers

Reviewers can skip X, but should pay attention to Y.

github-actions[bot] commented 1 year ago

Coverage

Coverage Report •
FileStmtsMissCoverMissing
src/psycop_model_training/application_modules
   get_search_space.py36360%1–122
   process_manager_setup.py16160%1–37
   trainer_spawner.py28280%3–89
   wandb_handler.py28196%40
src/psycop_model_training/application_modules/train_model
   main.py31294%25, 81
src/psycop_model_training/archive
   model_training_watcher.py1301300%2–367
src/psycop_model_training/config_schemas
   basemodel.py18194%25
   conf_utils.py29293%66–72
   data.py180100% 
   eval.py90100% 
   full_config.py170100% 
   preprocessing.py240100% 
src/psycop_model_training/data_loader
   col_name_checker.py290100% 
   data_classes.py90100% 
   data_loader.py471177%43, 65, 68, 73–78, 104–112
   utils.py331458%17, 64–81
src/psycop_model_training/model_eval
   dataclasses.py320100% 
   model_evaluator.py592164%49, 98–103, 110–124, 135–160
src/psycop_model_training/model_eval/artifact_saver
   to_disk.py35780%23, 52, 85–91
src/psycop_model_training/model_eval/base_artifacts
   base_artifact_generator.py401465%64–71, 183, 194, 206, 225–236
src/psycop_model_training/model_eval/base_artifacts/plots
   base_charts.py44295%60, 99
   feature_importance.py140100% 
   performance_by_age.py110100% 
   performance_by_sex.py110100% 
   performance_over_time.py68396%77, 214, 324
   precision_recall.py220100% 
   prob_over_time.py35197%136
   roc_auc.py19195%43
   sens_over_time.py84396%133, 174, 370
   time_from_first_positive_to_event.py241538%27–76
   utils.py30390%22, 42, 62
src/psycop_model_training/model_eval/base_artifacts/tables
   descriptive_stats_table.py861088%86–89, 126–134, 161, 308–310
   performance_by_threshold.py61493%253, 256–259
   tables.py281739%24–26, 35, 38–41, 57–65, 81–94
src/psycop_model_training/model_eval/model_performance
   model_performance.py102892%150, 153, 266, 438–482
   utils.py44295%128–131
src/psycop_model_training/preprocessing/post_split
   create_pipeline.py31584%21, 59, 76–80, 114
   pipeline.py140100% 
src/psycop_model_training/preprocessing/pre_split
   full_processor.py190100% 
src/psycop_model_training/preprocessing/pre_split/processors
   col_filter.py78988%39, 57–68, 137, 168, 191
   row_filter.py70593%40, 104, 127–132, 168
   value_cleaner.py300100% 
   value_transformer.py381366%30, 36–46, 55–66, 74, 77
src/psycop_model_training/training
   model_specs.py120100% 
   train_and_predict.py661183%157–173, 210
   utils.py120100% 
src/psycop_model_training/utils
   col_name_inference.py38976%29, 56–57, 65, 85–90, 117
   decorators.py652168%27–58, 77
   utils.py942474%45, 148–158, 207, 216, 243, 260–261, 278, 282, 312–315, 323–327, 332–343, 355–359
TOTAL197948376% 

Tests Skipped Failures Errors Time
48 1 :zzz: 0 :x: 0 :fire: 1m 24s :stopwatch:
MartinBernstorff commented 1 year ago

Waiting on #406, then merge.