Treelite
|
defines configuration macros of Treelite More...
#include <cstdint>
#include <string>
#include <unordered_map>
#include <stdexcept>
Go to the source code of this file.
Typedefs | |
typedef float | tl_float |
float type to be used internally | |
Enumerations | |
enum | SplitFeatureType : int8_t { kNone, kNumerical, kCategorical } |
feature split type | |
enum | Operator : int8_t { kNone, kEQ, kLT, kLE, kGT, kGE } |
comparison operators | |
Functions | |
std::string | OpName (Operator op) |
get string representation of comparsion operator More... | |
bool | CompareWithOp (tl_float lhs, Operator op, tl_float rhs) |
perform comparison between two float's using a comparsion operator The comparison will be in the form [lhs] [op] [rhs]. More... | |
Variables | |
const std::unordered_map< std::string, Operator > | optable |
conversion table from string to operator, defined in optable.cc More... | |
defines configuration macros of Treelite
Copyright (c) 2017-2020 by Contributors
Definition in file base.h.
perform comparison between two float's using a comparsion operator The comparison will be in the form [lhs] [op] [rhs].
lhs | float on the left hand side |
op | comparison operator |
rhs | float on the right hand side |
|
inline |
const std::unordered_map< std::string, Operator > optable |
conversion table from string to operator, defined in optable.cc
Definition at line 12 of file optable.cc.