Avoid thread block with sparse data. (#7255)

This commit is contained in:
Jiaming Yuan
2021-09-25 13:11:34 +08:00
committed by GitHub
parent ca17f8a5fc
commit d8a549e6ac
6 changed files with 97 additions and 16 deletions

View File

@@ -247,4 +247,9 @@ TEST(CpuPredictor, UpdatePredictionCache) {
TEST(CpuPredictor, LesserFeatures) {
TestPredictionWithLesserFeatures("cpu_predictor");
}
TEST(CpuPredictor, Sparse) {
TestSparsePrediction(0.2, "cpu_predictor");
TestSparsePrediction(0.8, "cpu_predictor");
}
} // namespace xgboost