prio-data / prediction_competition_2023

Code for generating benchmark models and evaluation scripts for the 2023 VIEWS prediction competition
4 stars 5 forks source link

Pull utility functions out into a separate utilities.py module #31

Closed kvelleby closed 1 year ago

kvelleby commented 1 year ago

Is your feature request related to a problem? Please describe. Some useful utility functions are difficult to find, like test_compliance.get_prediction_files() (also copied in resample_predictions.py) plotting.team_and_model(), plotting.get_predictions, and plotting.get_model_info(). These have overlapping use cases and could be generalized and structured better.

Describe the solution you'd like I want an utilities.py module to that can easily parse our data structures and provide the user with that the user needs.

Additional context The code as it is now was just my initial draft to get something working. Refactoring is needed.

kvelleby commented 1 year ago

This is now included after #38.