70 static const char* storage_type_repr[] = {
"AUTO",
"DENSE",
"SPARSE",
"SPARSE8"};
84 template <
typename real_t>
88 template <
typename real_t>
147 template <
typename real_t>
162 template <
typename real_t>
168 bool predict_proba =
false);
void free(const raft::handle_t &h, forest_t< real_t > f)
algo_t
Definition: fil.h:38
@ ALGO_AUTO
Definition: fil.h:41
@ BATCH_TREE_REORG
Definition: fil.h:51
@ TREE_REORG
Definition: fil.h:48
@ NAIVE
Definition: fil.h:44
constexpr int MAX_N_ITEMS
Definition: fil.h:99
storage_type_t
Definition: fil.h:55
@ DENSE
Definition: fil.h:59
@ SPARSE
Definition: fil.h:61
@ AUTO
Definition: fil.h:57
@ SPARSE8
Definition: fil.h:68
void from_treelite(const raft::handle_t &handle, forest_variant *pforest, TreeliteModelHandle model, const treelite_params_t *tl_params)
void predict(const raft::handle_t &h, forest_t< real_t > f, real_t *preds, const real_t *data, size_t num_rows, bool predict_proba=false)
precision_t
Definition: fil.h:73
@ PRECISION_NATIVE
Definition: fil.h:76
@ PRECISION_FLOAT64
Definition: fil.h:81
@ PRECISION_FLOAT32
Definition: fil.h:79
std::variant< forest_t< float >, forest_t< double > > forest_variant
Definition: fil.h:96
Definition: dbscan.hpp:30
Definition: dbscan.hpp:26
bool output_class
Definition: fil.h:107
float threshold
Definition: fil.h:112
storage_type_t storage_type
Definition: fil.h:114
int n_items
Definition: fil.h:124
int threads_per_tree
Definition: fil.h:121
int blocks_per_sm
Definition: fil.h:118
algo_t algo
Definition: fil.h:104
char ** pforest_shape_str
Definition: fil.h:127
precision_t precision
Definition: fil.h:129
void * TreeliteModelHandle
Definition: treelite_defs.hpp:23