7 #ifndef TREELITE_ANNOTATOR_H_ 8 #define TREELITE_ANNOTATOR_H_ 32 void Load(dmlc::Stream* fi);
37 void Save(dmlc::Stream* fo)
const;
51 inline std::vector<std::vector<size_t>>
Get()
const {
56 std::vector<std::vector<size_t>> counts;
61 #endif // TREELITE_ANNOTATOR_H_
Input data structure of Treelite.
void Annotate(const Model &model, const DMatrix *dmat, int nthread, int verbose)
annotate branches in a given model using frequency patterns in the training data. The annotation can ...
model structure for tree ensemble
std::vector< std::vector< size_t > > Get() const
fetch branch annotation. Usage example:
void Save(dmlc::Stream *fo) const
save branch annotation to a JSON file
void Load(dmlc::Stream *fi)
load branch annotation from a JSON file
thin wrapper for tree ensemble model