Branch annotator interface
◆ TreeliteAnnotateBranch()
annotate branches in a given model using frequency patterns in the training data.
- Parameters
-
model | model to annotate |
dmat | training data matrix |
nthread | number of threads to use |
verbose | whether to produce extra messages |
out | used to save handle for the created annotation |
- Returns
- 0 for success, -1 for failure
Definition at line 38 of file c_api.cc.
◆ TreeliteAnnotationFree()
delete branch annotation from memory
- Parameters
-
handle | annotation to remove |
- Returns
- 0 for success, -1 for failure
Definition at line 59 of file c_api.cc.
◆ TreeliteAnnotationSave()
save branch annotation to a JSON file
- Parameters
-
handle | annotation to save |
path | path to JSON file |
- Returns
- 0 for success, -1 for failure
Definition at line 50 of file c_api.cc.