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

Feature/experiment tracking #122

Open
wants to merge 22 commits into
base: develop
Choose a base branch
from

Conversation

antoniogonzalezsuarez
Copy link
Contributor

Add Experiment Tracking Module

Description: This PR introduces a new module, experiment_tracking.py, to the project. This module provides functionalities for tracking and managing machine learning experiments. It includes the following classes:

  • MLExperiment: This class represents a machine learning experiment. It provides functionalities to initialize metrics, get feature importance, plot ROC curve, plot precision recall curve, plot feature importance, register an experiment, predict using the model, and load an experiment from a registered experiment.

  • MLTracker: This class manages multiple machine learning experiments. It provides functionalities to scan for existing experiments, add new experiments, compare experiments, update experiment metrics, and generate comparison dataframes and hyperparameters json.

The addition of this module will greatly enhance the ability to track and manage machine learning experiments in the project. It supports models from scikit-learn, lightgbm, and catboost libraries for both regression and classification problems.

@codecov-commenter
Copy link

codecov-commenter commented Jan 23, 2024

Codecov Report

Attention: Patch coverage is 73.37662% with 205 lines in your changes missing coverage. Please review.

Project coverage is 75.66%. Comparing base (159ea48) to head (045af73).

Files Patch % Lines
mango/models/experiment_tracking.py 71.81% 199 Missing ⚠️
mango/models/enums.py 71.42% 4 Missing ⚠️
mango/models/metrics.py 95.91% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #122      +/-   ##
===========================================
- Coverage    76.18%   75.66%   -0.52%     
===========================================
  Files           73       76       +3     
  Lines         3388     4158     +770     
===========================================
+ Hits          2581     3146     +565     
- Misses         807     1012     +205     
Flag Coverage Δ
unit-tests 75.66% <73.37%> (-0.52%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ggsdc
Copy link
Member

ggsdc commented Jul 11, 2024

We should review if we want to take this to mango-time-series as this PR is going to get obsolete

@ggsdc ggsdc changed the base branch from development to develop July 11, 2024 14:55
@ggsdc
Copy link
Member

ggsdc commented Jul 23, 2024

I guess we have to review this after we change the requirements and the refatro of the repo, right?

@antoniogonzalezsuarez
Copy link
Contributor Author

We will review it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants