Expand categorical node. (#6028)
Co-authored-by: Philip Hyunsu Cho <chohyu01@cs.washington.edu>
This commit is contained in:
@@ -199,8 +199,10 @@ void LoadFeatureType(std::vector<std::string>const& type_names, std::vector<Feat
|
||||
types->emplace_back(FeatureType::kNumerical);
|
||||
} else if (elem == "q") {
|
||||
types->emplace_back(FeatureType::kNumerical);
|
||||
} else if (elem == "categorical") {
|
||||
types->emplace_back(FeatureType::kCategorical);
|
||||
} else {
|
||||
LOG(FATAL) << "All feature_types must be {int, float, i, q}";
|
||||
LOG(FATAL) << "All feature_types must be one of {int, float, i, q, categorical}.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user