Timeline for XGBoost (R Interface) throwing "label set cannot be empty" error
Current License: CC BY-SA 3.0
Post Revisions
16 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 27, 2018 at 8:18 | comment | added | bradS |
When creating the xgb.DMatrix (dtrain, dtest), specify the label parameter.
|
|
| Jun 26, 2018 at 15:07 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| May 27, 2018 at 14:43 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| S Apr 27, 2018 at 14:09 | history | edited | Stephen Rauch♦ | CC BY-SA 3.0 |
Added r tag
|
| S Apr 27, 2018 at 14:09 | history | suggested | Gaius |
Added r tag
|
|
| Apr 27, 2018 at 9:56 | review | Suggested edits | |||
| S Apr 27, 2018 at 14:09 | |||||
| Apr 27, 2018 at 9:54 | answer | added | Gaius | timeline score: 1 | |
| Sep 11, 2017 at 5:54 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Aug 12, 2017 at 5:26 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Jul 13, 2017 at 4:27 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Jun 13, 2017 at 3:37 | answer | added | citynorman | timeline score: 3 | |
| Jun 2, 2017 at 9:53 | comment | added | Chints | Continuing to explore this... As an attempt, I added label value in dtest parameter. The error went away... I still don't get the logic as there is unlikely to be a label tag available for test data set while predicting.. | |
| Jun 2, 2017 at 1:45 | comment | added | Chints | This returns an integer in the range [0,max] based on the factor values. XGBoost requires this range (starting from 0) for label. | |
| Jun 1, 2017 at 19:02 | comment | added | grldsndrs |
In your code what does trainlabelsfactored <- as.integer(train$primarydeptt) - 1 return
|
|
| Jun 1, 2017 at 9:29 | review | First posts | |||
| Jun 1, 2017 at 15:53 | |||||
| Jun 1, 2017 at 9:28 | history | asked | Chints | CC BY-SA 3.0 |