thin wrapper for tree ensemble model
More...
#include <tree.h>
|
| Model () |
| disable copy; use default move
|
|
| Model (const Model &)=delete |
|
Model & | operator= (const Model &)=delete |
|
| Model (Model &&)=default |
|
Model & | operator= (Model &&)=default |
|
TypeInfo | GetThresholdType () const |
|
TypeInfo | GetLeafOutputType () const |
|
template<typename Func > |
auto | Dispatch (Func func) |
|
template<typename Func > |
auto | Dispatch (Func func) const |
|
virtual std::size_t | GetNumTree () const =0 |
|
virtual void | SetTreeLimit (std::size_t limit)=0 |
|
virtual void | DumpAsJSON (std::ostream &fo, bool pretty_print) const =0 |
|
std::string | DumpAsJSON (bool pretty_print) const |
|
std::vector< PyBufferFrame > | GetPyBuffer () |
|
void | SerializeToFile (FILE *dest_fp) |
|
|
template<typename ThresholdType , typename LeafOutputType > |
static std::unique_ptr< Model > | Create () |
|
static std::unique_ptr< Model > | Create (TypeInfo threshold_type, TypeInfo leaf_output_type) |
|
static std::unique_ptr< Model > | CreateFromPyBuffer (std::vector< PyBufferFrame > frames) |
|
static std::unique_ptr< Model > | DeserializeFromFile (FILE *src_fp) |
|
thin wrapper for tree ensemble model
Definition at line 647 of file tree.h.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/treelite/checkouts/2.1.0/include/treelite/tree.h
- /home/docs/checkouts/readthedocs.org/user_builds/treelite/checkouts/2.1.0/include/treelite/tree_impl.h
- /home/docs/checkouts/readthedocs.org/user_builds/treelite/checkouts/2.1.0/src/serializer.cc