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

add indices in shuffle model. #1710

Merged
merged 3 commits into from
Sep 29, 2018
Merged

add indices in shuffle model. #1710

merged 3 commits into from
Sep 29, 2018

Conversation

guolinke
Copy link
Collaborator

No description provided.

Index of the iteration that will start to shuffle.
end_iteration : int, optional (default=-1)
The last iteration that will be shuffled.
If <= 0, means the last iterations.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

… last iteration.
Without s.

if (end_iter <= 0) {
end_iter = total_iter;
}
end_iter = std::min(total_iter, start_iter);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe

end_iter = std::min(total_iter, end_iter); 

?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, thanks so much.

@guolinke guolinke merged commit 81e2485 into master Sep 29, 2018
@guolinke guolinke deleted the shuffle_model branch October 9, 2018 08:15
@lock lock bot locked as resolved and limited conversation to collaborators Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants