Any of you know a good solution for this problem with cross-validation? @lakens @randal_olson @gwern http://stats.stackexchange.com/questions/213837/k-fold-cross-validation-nominal-predictor-level-appears-in-the-test-data-but-no … #rstats
-
-
Manually unfold the categorical into dummy variables? Probably causes singularities or something...
1 reply 0 retweets 2 likes -
Replying to @gwern @KirkegaardEmil and
Wouldn't be a problem if you used Bayesian regression since without examples just samples from priors.
1 reply 0 retweets 0 likes -
Replying to @gwern @KirkegaardEmil and
(Binary dummies mean that the lm always 'sees' each level but may always be 0s in the training subset)
1 reply 0 retweets 1 like
Not sure how you would do this. The level is still there in the training data, just no case has it.
6:04 PM - 21 May 2016
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.