Skip to content

Different outputs from Optuna best trial value and classifier output trained with best hyperparameters #5437

Answered by nzw0301
mohammedsabiya asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, I think this line should use the same name between dict's key and optuna's param name. This inconsistency looks the root cause of the issue.

        "learning_rate": trial.suggest_loguniform("alpha", 1e-8, 1.0),

In addition, objective and eval_metric are only specified in the objective and not in the call of the last fitting with best params.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@nzw0301
Comment options

@nzw0301
Comment options

Answer selected by nzw0301
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants