A fitted tree. nodes[0] is the root.
More...
#include <surrogate_tree.hpp>
|
| int | leaf (const std::vector< float > &x) const |
| | The leaf x falls in.
|
| |
| double | predict (const std::vector< float > &x) const |
| | The leaf's value: a class index, or the predicted target.
|
| |
| int | depth () const |
| |
| int64_t | leaves () const |
| |
A fitted tree. nodes[0] is the root.
◆ depth()
| int pulsatrix::SurrogateTree::depth |
( |
| ) |
const |
◆ leaf()
| int pulsatrix::SurrogateTree::leaf |
( |
const std::vector< float > & |
x | ) |
const |
The leaf x falls in.
- Exceptions
-
| std::invalid_argument | if x has the wrong size. |
◆ leaves()
| int64_t pulsatrix::SurrogateTree::leaves |
( |
| ) |
const |
◆ predict()
| double pulsatrix::SurrogateTree::predict |
( |
const std::vector< float > & |
x | ) |
const |
The leaf's value: a class index, or the predicted target.
◆ nodes
◆ num_classes
| int64_t pulsatrix::SurrogateTree::num_classes = 0 |
Classification: the number of classes (the model's output size).
◆ num_features
| int64_t pulsatrix::SurrogateTree::num_features = 0 |
◆ task
The documentation for this struct was generated from the following file: