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

[FAQ] On-training custom metrics #161

Open
LordGedelicious opened this issue Nov 23, 2024 · 3 comments
Open

[FAQ] On-training custom metrics #161

LordGedelicious opened this issue Nov 23, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request question Further information is requested
Milestone

Comments

@LordGedelicious
Copy link

I'm wondering if there's a way to customize the metrics logged per step and per epoch of the model training process. Right now, I'm training a binary classifier model (MambularClassifier) and it's only showing the train_loss_step, val_loss, and train_loss_epoch for the metrics. Is it possible to add other metrics such as MSE, RMSE, accuracy, val_accuracy? Other than extending the class implementation myself of course.

@LordGedelicious LordGedelicious added the question Further information is requested label Nov 23, 2024
@AnFreTh
Copy link
Collaborator

AnFreTh commented Nov 23, 2024

Great Suggestion! We will add it in one of the next versions.
I will transform this to an "enhancement"

@AnFreTh AnFreTh added the enhancement New feature or request label Nov 23, 2024
@AnFreTh AnFreTh self-assigned this Nov 23, 2024
@LordGedelicious
Copy link
Author

Thank you for your hard work! Quick follow up question if you don't mind, since the models are implemented based on Sklearn's base models, can mapping learning curves and/or validation curves be performed with the from sklearn.model_selection import learning_curve functionality? Right now, I'm noting the values manually since it takes 3-4 minutes per epoch to be mapped later on with matplotlib

@AnFreTh
Copy link
Collaborator

AnFreTh commented Nov 23, 2024

Since all models are ultimately training via lightning, this is unfortunately not possible. Once, logging custom metrics is possible, everything can logged via the trainer kwargs in the fit method

@AnFreTh AnFreTh added this to the v1.1.0 milestone Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants