-
Notifications
You must be signed in to change notification settings - Fork 632
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
the missing value in xgbTree training with caret #573
Comments
As of version 6.0-71:
So you should use |
If I use na.action =na.pass,the information shows the models is trained by the same number samples as pre-rocessed by na.omit. I set na.action=na.pass in trainXgbModel ,and 2 rows in train1[1:100,] have missing values
remove na.action=na.pass
then the sample number both equals to 98,So I wonder if set na.action=na.pass is equal to na.omit(train1[1:100,]). |
That's helpful but I'll need a reproducible example to figure out what is going on. |
This thread was very useful, thanks! @topepo has there been any movement with this issue? |
I try to build a binary classifier modeling with xgbTree and tuning parames with caret.If I put the data having missing value into train funciton,I get the error information.
If I put the data pre-processed by na.omit() or set na.action=na.pass in train function ,there is no error.In this page https://github.com/topepo/caret/pull/512/commits/b68df5794c2742ba2b1767850a356c6e81b044fa ,It tells it is the source code makes this error.So how can I use this to solve my problem .na.omit and set na.action=na.pass is not I intended.
Thanks in advance !
The text was updated successfully, but these errors were encountered: