Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
ML::experimental::fil::node< layout_v, threshold_t, index_t, metadata_storage_t, offset_t > Struct Template Reference

#include <node.hpp>

Collaboration diagram for ML::experimental::fil::node< layout_v, threshold_t, index_t, metadata_storage_t, offset_t >:
Collaboration graph

Classes

union  value_type
 

Public Types

using threshold_type = threshold_t
 
using index_type = index_t
 
using metadata_storage_type = metadata_storage_t
 An alias for metadata_storage_t. More...
 
using offset_type = offset_t
 An alias for offset_t. More...
 

Public Member Functions

HOST constexpr DEVICE node (threshold_type value=threshold_type{}, bool is_leaf_node=true, bool default_to_distant_child=false, bool is_categorical_node=false, metadata_storage_type feature=metadata_storage_type{}, offset_type distant_child_offset=offset_type{})
 
HOST constexpr DEVICE node (index_type index, bool is_leaf_node=true, bool default_to_distant_child=false, bool is_categorical_node=false, metadata_storage_type feature=metadata_storage_type{}, offset_type distant_child_offset=offset_type{})
 
HOST DEVICE constexpr auto feature_index () const
 
HOST DEVICE constexpr auto is_leaf () const
 
HOST DEVICE constexpr auto default_distant () const
 
HOST DEVICE constexpr auto is_categorical () const
 
HOST DEVICE constexpr auto child_offset (bool condition) const
 
HOST DEVICE constexpr auto threshold () const
 
HOST DEVICE auto const & index () const
 
template<bool has_vector_leaves>
HOST DEVICE constexpr auto output () const
 

Static Public Attributes

constexpr static auto const layout = layout_v
 

Member Typedef Documentation

◆ index_type

template<tree_layout layout_v, typename threshold_t , typename index_t , typename metadata_storage_t , typename offset_t >
using ML::experimental::fil::node< layout_v, threshold_t, index_t, metadata_storage_t, offset_t >::index_type = index_t

◆ metadata_storage_type

template<tree_layout layout_v, typename threshold_t , typename index_t , typename metadata_storage_t , typename offset_t >
using ML::experimental::fil::node< layout_v, threshold_t, index_t, metadata_storage_t, offset_t >::metadata_storage_type = metadata_storage_t

An alias for metadata_storage_t.

◆ offset_type

template<tree_layout layout_v, typename threshold_t , typename index_t , typename metadata_storage_t , typename offset_t >
using ML::experimental::fil::node< layout_v, threshold_t, index_t, metadata_storage_t, offset_t >::offset_type = offset_t

An alias for offset_t.

◆ threshold_type

template<tree_layout layout_v, typename threshold_t , typename index_t , typename metadata_storage_t , typename offset_t >
using ML::experimental::fil::node< layout_v, threshold_t, index_t, metadata_storage_t, offset_t >::threshold_type = threshold_t

Constructor & Destructor Documentation

◆ node() [1/2]

template<tree_layout layout_v, typename threshold_t , typename index_t , typename metadata_storage_t , typename offset_t >
HOST constexpr DEVICE ML::experimental::fil::node< layout_v, threshold_t, index_t, metadata_storage_t, offset_t >::node ( threshold_type  value = threshold_type{},
bool  is_leaf_node = true,
bool  default_to_distant_child = false,
bool  is_categorical_node = false,
metadata_storage_type  feature = metadata_storage_type{},
offset_type  distant_child_offset = offset_type{} 
)
inlineconstexpr

◆ node() [2/2]

template<tree_layout layout_v, typename threshold_t , typename index_t , typename metadata_storage_t , typename offset_t >
HOST constexpr DEVICE ML::experimental::fil::node< layout_v, threshold_t, index_t, metadata_storage_t, offset_t >::node ( index_type  index,
bool  is_leaf_node = true,
bool  default_to_distant_child = false,
bool  is_categorical_node = false,
metadata_storage_type  feature = metadata_storage_type{},
offset_type  distant_child_offset = offset_type{} 
)
inlineconstexpr

Member Function Documentation

◆ child_offset()

template<tree_layout layout_v, typename threshold_t , typename index_t , typename metadata_storage_t , typename offset_t >
HOST DEVICE constexpr auto ML::experimental::fil::node< layout_v, threshold_t, index_t, metadata_storage_t, offset_t >::child_offset ( bool  condition) const
inlineconstexpr

◆ default_distant()

template<tree_layout layout_v, typename threshold_t , typename index_t , typename metadata_storage_t , typename offset_t >
HOST DEVICE constexpr auto ML::experimental::fil::node< layout_v, threshold_t, index_t, metadata_storage_t, offset_t >::default_distant ( ) const
inlineconstexpr

◆ feature_index()

template<tree_layout layout_v, typename threshold_t , typename index_t , typename metadata_storage_t , typename offset_t >
HOST DEVICE constexpr auto ML::experimental::fil::node< layout_v, threshold_t, index_t, metadata_storage_t, offset_t >::feature_index ( ) const
inlineconstexpr

◆ index()

template<tree_layout layout_v, typename threshold_t , typename index_t , typename metadata_storage_t , typename offset_t >
HOST DEVICE auto const& ML::experimental::fil::node< layout_v, threshold_t, index_t, metadata_storage_t, offset_t >::index ( ) const
inline

◆ is_categorical()

template<tree_layout layout_v, typename threshold_t , typename index_t , typename metadata_storage_t , typename offset_t >
HOST DEVICE constexpr auto ML::experimental::fil::node< layout_v, threshold_t, index_t, metadata_storage_t, offset_t >::is_categorical ( ) const
inlineconstexpr

◆ is_leaf()

template<tree_layout layout_v, typename threshold_t , typename index_t , typename metadata_storage_t , typename offset_t >
HOST DEVICE constexpr auto ML::experimental::fil::node< layout_v, threshold_t, index_t, metadata_storage_t, offset_t >::is_leaf ( ) const
inlineconstexpr

◆ output()

template<tree_layout layout_v, typename threshold_t , typename index_t , typename metadata_storage_t , typename offset_t >
template<bool has_vector_leaves>
HOST DEVICE constexpr auto ML::experimental::fil::node< layout_v, threshold_t, index_t, metadata_storage_t, offset_t >::output ( ) const
inlineconstexpr

◆ threshold()

template<tree_layout layout_v, typename threshold_t , typename index_t , typename metadata_storage_t , typename offset_t >
HOST DEVICE constexpr auto ML::experimental::fil::node< layout_v, threshold_t, index_t, metadata_storage_t, offset_t >::threshold ( ) const
inlineconstexpr

Member Data Documentation

◆ layout

template<tree_layout layout_v, typename threshold_t , typename index_t , typename metadata_storage_t , typename offset_t >
constexpr static auto const ML::experimental::fil::node< layout_v, threshold_t, index_t, metadata_storage_t, offset_t >::layout = layout_v
staticconstexpr

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