-
-
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
Allowing arbitrary names for setinfo
in R
#1431
Comments
Thanks Tom. It would be great if we could somehow relax this restriction a little. I could also do it by whitelisting new names in |
@khotilov thanks for the hint, do you have any example code, by any chance? I do think using closure here will help, but I'm not too sure if that's the best way to do this at R level without complicating things unnecessarily. |
Here is an example of custom loss (no use of closure solution, but easy to guess how to do it) |
I had a discussion with @road2stat about introducing Cox regression into xgboost. The special thing about it is that in the loss function there are some additional parameters (similar to weights).
The function
setinfo
enables user to set certain numerical information for each data point in anxgb.DMatrix
object. In its current implementation, we only have four options for the parametername
.@tqchen May I know the reason for that restriction? If we could remove the restriction for the names, Users could attach arbitrary parameters to the data points and it will be more flexible for the loss function implementation. This helps some applications like Cox regression.
The text was updated successfully, but these errors were encountered: