treelite
|
Functions | |
int | TreeliteDumpAsJSON (TreeliteModelHandle handle, int pretty_print, char const **out_json_str) |
Dump a model object as a JSON string. More... | |
int | TreeliteGetInputType (TreeliteModelHandle model, char const **out_str) |
Query the input type of a Treelite model object. More... | |
int | TreeliteGetOutputType (TreeliteModelHandle model, char const **out_str) |
Query the output type of a Treelite model object. More... | |
int | TreeliteQueryNumTree (TreeliteModelHandle model, size_t *out) |
Query the number of trees in the model. More... | |
int | TreeliteQueryNumFeature (TreeliteModelHandle model, int *out) |
Query the number of features used in the model. More... | |
int | TreeliteConcatenateModelObjects (TreeliteModelHandle const *objs, size_t len, TreeliteModelHandle *out) |
Concatenate multiple model objects into a single model object by copying all member trees into the destination model object. More... | |
int | TreeliteFreeModel (TreeliteModelHandle handle) |
Delete model from memory. More... | |
int TreeliteConcatenateModelObjects | ( | TreeliteModelHandle const * | objs, |
size_t | len, | ||
TreeliteModelHandle * | out | ||
) |
Concatenate multiple model objects into a single model object by copying all member trees into the destination model object.
objs | Pointer to the beginning of the list of model objects |
len | Number of model objects |
out | Used to save the concatenated model |
int TreeliteDumpAsJSON | ( | TreeliteModelHandle | handle, |
int | pretty_print, | ||
char const ** | out_json_str | ||
) |
Dump a model object as a JSON string.
handle | The handle to the model object |
pretty_print | Whether to pretty-print JSON string (0 for false, != 0 for true) |
out_json_str | The JSON string |
int TreeliteFreeModel | ( | TreeliteModelHandle | handle | ) |
Delete model from memory.
handle | Model to remove |
int TreeliteGetInputType | ( | TreeliteModelHandle | model, |
char const ** | out_str | ||
) |
Query the input type of a Treelite model object.
model | Treelite Model object |
out_str | String representation of input type |
int TreeliteGetOutputType | ( | TreeliteModelHandle | model, |
char const ** | out_str | ||
) |
Query the output type of a Treelite model object.
model | Treelite Model object |
out_str | String representation of output type |
int TreeliteQueryNumFeature | ( | TreeliteModelHandle | model, |
int * | out | ||
) |
Query the number of features used in the model.
model | Model to query |
out | Number of features |
int TreeliteQueryNumTree | ( | TreeliteModelHandle | model, |
size_t * | out | ||
) |
Query the number of trees in the model.
model | Model to query |
out | Number of trees |