caret (Classification And Regression Training) R package that contains misc functions for training and plotting classification and regression models
1.61k
stars
634
forks
source link
Flaky test on dummyVars #1350
Open
MichaelChirico opened 11 months ago
This test is flaky:
https://github.com/topepo/caret/blob/5f4bd2069bf486ae92240979f9d65b5c138ca8d4/pkg/caret/tests/testthat/test_Dummies.R#L122-L139C3
It fails whenever some entry from
1:15
is missing fromsample.int(15, size = 100, replace = TRUE, prob = rep(1 / 15, 15))
.That happens about (probably exactly? too lazy to do the math) 1.5% of the time:
Observe: