Support more input types for categorical data. (#7220)
* Support more input types for categorical data. * Shorten the type name from "categorical" to "c". * Tests for np/cp array and scipy csr/csc/coo. * Specify the type for feature info.
This commit is contained in:
@@ -285,7 +285,7 @@ void TestCategoricalTreeDump(std::string format, std::string sep) {
|
||||
pos = str.find(cond_str, pos + 1);
|
||||
ASSERT_NE(pos, std::string::npos);
|
||||
|
||||
fmap.PushBack(0, "feat_0", "categorical");
|
||||
fmap.PushBack(0, "feat_0", "c");
|
||||
fmap.PushBack(1, "feat_1", "q");
|
||||
fmap.PushBack(2, "feat_2", "int");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user