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

versbose_eval prints metric at each iteration even if its value is an integer with Python api. #6334

Closed
jfpuget opened this issue Nov 2, 2020 · 1 comment · Fixed by #6348

Comments

@jfpuget
Copy link

jfpuget commented Nov 2, 2020

verbose_eval not None creates an evaluation monitor whatever the value of verbose_eval.

        if verbose_eval:
            callbacks.append(callback.EvaluationMonitor())

According to documentation it should print something only N iterations if verbose_eval value is an integer N.

@jfpuget
Copy link
Author

jfpuget commented Nov 2, 2020

Workaround:

monitor = xgb.callback.print_evaluation(period=verbose_eval)

and use callback argument to training api.

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

Successfully merging a pull request may close this issue.

2 participants