treelite
task_type.h
Go to the documentation of this file.
1 
8 #ifndef TREELITE_ENUM_TASK_TYPE_H_
9 #define TREELITE_ENUM_TASK_TYPE_H_
10 
11 #include <cstdint>
12 #include <string>
13 
14 namespace treelite {
15 
19 enum class TaskType : std::uint8_t {
20  kBinaryClf = 0,
21  kRegressor = 1,
22  kMultiClf = 2,
23  kLearningToRank = 3,
25 };
26 
28 std::string TaskTypeToString(TaskType type);
29 
31 TaskType TaskTypeFromString(std::string const& str);
32 
33 } // namespace treelite
34 
35 #endif // TREELITE_ENUM_TASK_TYPE_H_
Definition: contiguous_array.h:14
std::string TaskTypeToString(TaskType type)
Get string representation of TaskType.
TaskType TaskTypeFromString(std::string const &str)
Get TaskType from string.
TaskType
Enum type representing the task type.
Definition: task_type.h:19