Open
Conversation
Contributor
|
the LGBM looks great, and that optuna certainly seems like a clean way for model optimization i'll have to learn about that library. currently the only deployed model is the multi_model, and for it to deploy we have defined a wrapper around the model could you make something similar? |
extreme4all
reviewed
Oct 16, 2025
src/binary_model/train.py
Outdated
| model = LGBMClassifier(random_state=42, **best_params) | ||
| model.fit(X, y) | ||
| mlflow.log_params(best_params) | ||
| mlflow.sklearn.log_model(model, artifact_path="refit_model") |
Contributor
There was a problem hiding this comment.
can you also add some metrics for the refit_best model
Author
|
Sounds good, I'll run some similar experiments on the multi_model and update the PR once done. |
Author
|
Introduced similar changes to the multimodel. I tried to make it so the deployment pipeline would need minimal changes. Let me know if anything here would break the larger deployment pipeline. @extreme4all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds LightGBM + optuna optimization. It begins with an initial hyperparameter guess from long previous experiments, and does ten 5-fold stratified cross-validation experiments to do a short exploration of other hyperparameter sets. It still saves metrics and the final model artifact using mlflow.