-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
[R] Remove parameters and attributes related to ntree
and rebase iterationrange
#9935
Conversation
It's fine. It's common for us to open pull requests that include the commits from another pull request. Let's try to merge #9924 soon. |
b34e0f5
to
4852216
Compare
@trivialfis Would be ideal if you could review this PR next. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm looking into #9948 as well, would be great if there's a common reindexing function either in C or in R that handles all the translation and can be tested independently.
I find it difficult to reason that all places that need indexing are performing the translation consistently.
Do you have a list of places where such reindexing should be applied? As I see it, currently there is:
|
Thank you for sharing, it might be difficult to gather everything into one place. An additional concern is the categorical data. It's not just 0-based indexing v.s. 1-based indexing, exclusive and inclusive on the end of a range is also problematic, would be great if we could at least find a place to document all the differences so that we can lookup in the future. |
You mean in one of those |
sounds good! |
ref #9810
After the introduction of newer tree modalities such as multi-quantile regression, the code for determining the number of trees in a model is no longer correct, and other sections that rely on it might produce incorrect results. I see that parameters referring to number of trees have been deprecated in favor of parameters referring to number of iterations, so I'm making the switch here.
This PR:
ntree_limit
inpredict
.num_class
to determine prediction shapes, as now there are more ways in whichpredict
can output multi-dimensional results.iterationrange
to match with R's sequences/ranges.I've based it off from the current last commit of previous PR #9924 which is a requisite for the changes introduced here.
I'm not sure how to make the PR show the diff w.r.t to that other PR, as it's not a branch of this repository, and I cannot open a PR here to merge to a branch on my own repository, so this PR will need to be rebased later on in order to make it mergable (I think the kind of commits that github generates will also mess up
git merge
later on so a rebase will anyway be needed).