|
koho.cpp
1.1.0
|
Node of a binary tree. More...
#include <decision_tree.h>

Public Member Functions | |
| Node (NodesIdx_t left_child, NodesIdx_t right_child, FeaturesIdx_t feature, int NA, Features_t threshold, const std::vector< std::vector< Histogram_t >> &histogram, double impurity, double improvement) | |
| Create a new node. More... | |
| void | serialize (std::ofstream &fout) |
| Serialize. More... | |
Static Public Member Functions | |
| static Node | deserialize (std::ifstream &fin) |
| Deserialize. More... | |
Public Attributes | |
| NodesIdx_t | left_child |
| NodesIdx_t | right_child |
| FeaturesIdx_t | feature |
| int | NA |
| Features_t | threshold |
| std::vector< std::vector< Histogram_t > > | histogram |
| double | impurity |
| double | improvement |
Node of a binary tree.
| koho::Node::Node | ( | NodesIdx_t | left_child, |
| NodesIdx_t | right_child, | ||
| FeaturesIdx_t | feature, | ||
| int | NA, | ||
| Features_t | threshold, | ||
| const std::vector< std::vector< Histogram_t >> & | histogram, | ||
| double | impurity, | ||
| double | improvement | ||
| ) |
Create a new node.
|
static |
Deserialize.
| void koho::Node::serialize | ( | std::ofstream & | fout | ) |
Serialize.
| FeaturesIdx_t koho::Node::feature |
| std::vector<std::vector<Histogram_t> > koho::Node::histogram |
| double koho::Node::improvement |
| double koho::Node::impurity |
| NodesIdx_t koho::Node::left_child |
| int koho::Node::NA |
| NodesIdx_t koho::Node::right_child |
| Features_t koho::Node::threshold |
1.8.13