Use ellpack for prediction only when sparsepage doesn't exist. (#5504)
This commit is contained in:
@@ -220,7 +220,7 @@ TEST(SimpleDMatrix, FromFile) {
|
||||
TEST(SimpleDMatrix, Slice) {
|
||||
const int kRows = 6;
|
||||
const int kCols = 2;
|
||||
auto p_dmat = RandomDataGenerator(kRows, kCols, 1.0).GenerateDMatix();
|
||||
auto p_dmat = RandomDataGenerator(kRows, kCols, 1.0).GenerateDMatrix();
|
||||
auto &labels = p_dmat->Info().labels_.HostVector();
|
||||
auto &weights = p_dmat->Info().weights_.HostVector();
|
||||
auto &base_margin = p_dmat->Info().base_margin_.HostVector();
|
||||
|
||||
Reference in New Issue
Block a user