forpy
2
|
Manages the leaf nodes of regression trees. More...
#include <regressionleaf.h>
Public Member Functions | |
RegressionLeaf (const bool &store_variance=false, const bool &summarize=false) | |
bool | operator== (const ILeaf &rhs) const |
std::shared_ptr< ILeaf > | create_duplicate () const |
Interface implementation. More... | |
bool | is_compatible_with (const IDataProvider &data_provider) |
Interface implementation. More... | |
bool | is_compatible_with (const IThreshOpt &) |
Interface implementation. More... | |
void | transfer_or_run_check (ILeaf *other, IThreshOpt *thresh_opt, IDataProvider *dprov) |
Interface implementation. More... | |
void | make_leaf (const TodoMark &todo_info, const IDataProvider &data_provider, Desk *desk) const |
Interface implementation. More... | |
size_t | get_result_columns (const size_t &n_trees, const bool &predict_proba, const bool &) const |
Interface implementation. More... | |
Data< Mat > | get_result_type (const bool &, const bool &) const |
Interface implementation. More... | |
void | get_result (const id_t &node_id, Data< MatRef > &target, const bool &predict_proba, const bool &for_forest) const |
Interface implementation. More... | |
const std::vector< Mat< float > > * | get_map () const |
Interface implementation. More... | |
void | get_result (const std::vector< Data< Mat >> &leaf_results, Data< MatRef > &target_v, const Vec< float > &weights=Vec< float >(), const bool &predict_proba=false) const |
Interface implementation. More... | |
void | ensure_capacity (const size_t &n) |
Interface implementation. More... | |
void | finalize_capacity (const size_t &n) |
Interface implementation. More... | |
![]() | |
virtual | ~ILeaf () |
virtual Data< Mat > | get_result (const id_t &node_id, const bool &predict_proba=false, const bool &for_forest=false) const |
Get the leaf data for the leaf with the given id. More... | |
virtual Data< Mat > | get_result (const std::vector< Data< Mat >> &leaf_results, const Vec< float > &weights=Vec< float >(), const bool &predict_proba=false) const |
Combine leaf results of several trees with weights. More... | |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const uint &) |
Private Attributes | |
std::vector< Mat< float > > | leaf_regression_map |
size_t | annot_dim |
bool | store_variance |
bool | summarize |
Friends | |
class | cereal::access |
std::ostream & | operator<< (std::ostream &stream, const RegressionLeaf &self) |
Additional Inherited Members | |
![]() | |
ILeaf () | |
Manages the leaf nodes of regression trees.
Definition at line 26 of file regressionleaf.h.
|
inlineexplicit |
Definition at line 28 of file regressionleaf.h.
|
inlinevirtual |
Interface implementation.
Reimplemented from forpy::ILeaf.
Definition at line 37 of file regressionleaf.h.
|
inlinevirtual |
Interface implementation.
Reimplemented from forpy::ILeaf.
Definition at line 101 of file regressionleaf.h.
|
inlinevirtual |
Interface implementation.
Reimplemented from forpy::ILeaf.
Definition at line 104 of file regressionleaf.h.
|
inlinevirtual |
|
virtual |
Interface implementation.
Reimplemented from forpy::ILeaf.
|
virtual |
Interface implementation.
Reimplemented from forpy::ILeaf.
|
inlinevirtual |
Interface implementation.
Reimplemented from forpy::ILeaf.
Definition at line 60 of file regressionleaf.h.
|
inlinevirtual |
Interface implementation.
Reimplemented from forpy::ILeaf.
Definition at line 86 of file regressionleaf.h.
|
inlinevirtual |
Interface implementation.
Reimplemented from forpy::ILeaf.
Definition at line 41 of file regressionleaf.h.
|
inlinevirtual |
Interface implementation.
Reimplemented from forpy::ILeaf.
Definition at line 45 of file regressionleaf.h.
|
virtual |
Interface implementation.
Reimplemented from forpy::ILeaf.
|
virtual |
Reimplemented from forpy::ILeaf.
|
inlineprivate |
Definition at line 118 of file regressionleaf.h.
|
inlinevirtual |
Interface implementation.
Reimplemented from forpy::ILeaf.
Definition at line 48 of file regressionleaf.h.
|
friend |
Definition at line 113 of file regressionleaf.h.
|
friend |
Definition at line 108 of file regressionleaf.h.
|
private |
Definition at line 124 of file regressionleaf.h.
|
private |
Definition at line 123 of file regressionleaf.h.
|
private |
Definition at line 125 of file regressionleaf.h.
|
private |
Definition at line 126 of file regressionleaf.h.