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

Use best iteration in mbo objective instead of last iteration #56

Open
giuseppec opened this issue Jul 22, 2018 · 1 comment
Open

Use best iteration in mbo objective instead of last iteration #56

giuseppec opened this issue Jul 22, 2018 · 1 comment

Comments

@giuseppec
Copy link

If people use early.stopping.rounds = 500 or some other high value, this line :

res = performance(pred, measure)

always measures the performance of the last iteration, right? Shouldn't the "best iteration" be used instead of the last iteration?

@ja-thomas
Copy link
Owner

That's a good point. This could be easily done via adding ntreelimit to the learner and use it in the predict call.

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

No branches or pull requests

2 participants