Treelite
|
defines configuration macros of Treelite More...
#include <cstdint>
#include <typeinfo>
#include <string>
#include <unordered_map>
#include <stdexcept>
#include "./typeinfo.h"
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 comparison operator More... | |
template<typename ElementType , typename ThresholdType > | |
bool | CompareWithOp (ElementType lhs, Operator op, ThresholdType 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 tables.cc More... | |
defines configuration macros of Treelite
Copyright (c) 2017-2020 by Contributors
Definition in file base.h.
|
inline |
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 tables.cc
Definition at line 14 of file optable.cc.