Neuraxio / Neuraxle

The world's cleanest AutoML library ✨ - Do hyperparameter tuning with the right pipeline abstractions to write clean deep learning production pipelines. Let your pipeline steps have hyperparameter spaces. Design steps in your pipeline like components. Compatible with Scikit-Learn, TensorFlow, and most other libraries, frameworks and MLOps environments.
https://www.neuraxle.org/
Apache License 2.0
608 stars 62 forks source link

Feature: (AutoML) Refactor Trainer for metrics to possibly be measured before training. #459

Closed vincent-antaki closed 1 year ago

vincent-antaki commented 3 years ago

Right now, we only measure metrics after each epoch. It could be useful to measure metrics before the first epoch as to gain better insight on the training process.

Considerations:

guillaume-chevalier commented 3 years ago

@vincent-antaki Here is my suggestion:

Overall, allowing better injection and customization of the trainer to the AutoML loop will give the expected flexibility.

guillaume-chevalier commented 3 years ago

FYI @Eric2Hamel

guillaume-chevalier commented 3 years ago

See also: https://github.com/Neuraxio/Neuraxle/issues/302

vincent-antaki commented 3 years ago

@guillaume-chevalier I don't mind dependency inversion of Trainer/AutoML. However, your solution does not address point 2 and 3 of the consideration list. I'll implement it anyway because it is sufficient for what I need right now - and rather simple. But keep in mind point 2 and 3 are eventual problems to fix.

Eric2Hamel commented 3 years ago

What is the reason to calculate the metric before the first epoch?

vincent-antaki commented 3 years ago

Prettier training curves plot mainly :)

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in the next 180 days. Thank you for your contributions.