Treelite
|
Functions | |
int | TreeliteCompilerCreateV2 (const char *name, const char *params_json_str, CompilerHandle *out) |
Create a compiler with a given name. More... | |
int | TreeliteCompilerGenerateCodeV2 (CompilerHandle compiler, ModelHandle model, const char *dirpath) |
Generate prediction code from a tree ensemble model. The code will be C99 compliant. One header file (.h) will be generated, along with one or more source files (.c). More... | |
int | TreeliteCompilerFree (CompilerHandle handle) |
delete compiler from memory More... | |
Compiler interface
int TreeliteCompilerCreateV2 | ( | const char * | name, |
const char * | params_json_str, | ||
CompilerHandle * | out | ||
) |
int TreeliteCompilerFree | ( | CompilerHandle | handle | ) |
int TreeliteCompilerGenerateCodeV2 | ( | CompilerHandle | compiler, |
ModelHandle | model, | ||
const char * | dirpath | ||
) |
Generate prediction code from a tree ensemble model. The code will be C99 compliant. One header file (.h) will be generated, along with one or more source files (.c).
Usage example:
compiler | handle for compiler |
model | handle for tree ensemble model |
dirpath | directory to store header and source files |