Loading [MathJax]/extensions/tex2jax.js
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | List of all members
ML::experimental::forest::treelite_traversal_forest< tl_threshold_t, tl_output_t > Struct Template Reference

#include <treelite.hpp>

Inheritance diagram for ML::experimental::forest::treelite_traversal_forest< tl_threshold_t, tl_output_t >:
Inheritance graph
Collaboration diagram for ML::experimental::forest::treelite_traversal_forest< tl_threshold_t, tl_output_t >:
Collaboration graph

Public Types

using node_type = typename base_type::node_type
 
using node_id_type = typename base_type::node_id_type
 
using tree_id_type = typename base_type::tree_id_type
 
using node_uid_type = typename base_type::node_uid_type
 
- Public Types inherited from ML::experimental::forest::traversal_forest< treelite_traversal_node< tl_threshold_t, tl_output_t > >
using node_type = treelite_traversal_node< tl_threshold_t, tl_output_t >
 
using node_id_type = typename node_type::id_type
 
using tree_id_type = std::size_t
 
using node_uid_type = std::pair< tree_id_type, node_id_type >
 
using index_type = std::size_t
 

Public Member Functions

 treelite_traversal_forest (treelite::ModelPreset< tl_threshold_t, tl_output_t > const &tl_model)
 
node_type get_node (tree_id_type tree_id, node_id_type node_id) const override
 
- Public Member Functions inherited from ML::experimental::forest::traversal_forest< treelite_traversal_node< tl_threshold_t, tl_output_t > >
virtual node_type get_node (tree_id_type tree_id, node_id_type node_id) const=0
 
 traversal_forest (std::vector< node_uid_type > &&root_node_uids)
 
void for_each (lambda_t &&lambda) const
 

Member Typedef Documentation

◆ node_id_type

template<typename tl_threshold_t , typename tl_output_t >
using ML::experimental::forest::treelite_traversal_forest< tl_threshold_t, tl_output_t >::node_id_type = typename base_type::node_id_type

◆ node_type

template<typename tl_threshold_t , typename tl_output_t >
using ML::experimental::forest::treelite_traversal_forest< tl_threshold_t, tl_output_t >::node_type = typename base_type::node_type

◆ node_uid_type

template<typename tl_threshold_t , typename tl_output_t >
using ML::experimental::forest::treelite_traversal_forest< tl_threshold_t, tl_output_t >::node_uid_type = typename base_type::node_uid_type

◆ tree_id_type

template<typename tl_threshold_t , typename tl_output_t >
using ML::experimental::forest::treelite_traversal_forest< tl_threshold_t, tl_output_t >::tree_id_type = typename base_type::tree_id_type

Constructor & Destructor Documentation

◆ treelite_traversal_forest()

template<typename tl_threshold_t , typename tl_output_t >
ML::experimental::forest::treelite_traversal_forest< tl_threshold_t, tl_output_t >::treelite_traversal_forest ( treelite::ModelPreset< tl_threshold_t, tl_output_t > const &  tl_model)
inline

Member Function Documentation

◆ get_node()

template<typename tl_threshold_t , typename tl_output_t >
node_type ML::experimental::forest::treelite_traversal_forest< tl_threshold_t, tl_output_t >::get_node ( tree_id_type  tree_id,
node_id_type  node_id 
) const
inlineoverride

The documentation for this struct was generated from the following file: