[backport] Always use partition based categorical splits. (#7857) (#7865)

This commit is contained in:
Jiaming Yuan
2022-05-06 19:14:19 +08:00
committed by GitHub
parent f4eb6b984e
commit b1b6246e35
13 changed files with 77 additions and 103 deletions

View File

@@ -36,10 +36,6 @@ struct ObjInfo {
explicit ObjInfo(Task t) : task{t} {}
ObjInfo(Task t, bool khess) : task{t}, const_hess{khess} {}
XGBOOST_DEVICE bool UseOneHot() const {
return (task != ObjInfo::kRegression && task != ObjInfo::kBinary);
}
};
} // namespace xgboost
#endif // XGBOOST_TASK_H_