![]() |
OpenCV 4.12.0
開源計算機視覺
|
該類表示一個決策樹節點。 更多...
#include <opencv2/ml.hpp>
公共成員函式 | |
| Node () | |
公共屬性 | |
| int | classIdx |
| int | defaultDir |
| int | 左 |
| 左子節點的索引。 | |
| int | parent |
| 父節點的索引。 | |
| int | 右 |
| 右子節點的索引。 | |
| int | split |
| 第一個分割的索引。 | |
| double | 值 |
該類表示一個決策樹節點。
| cv::ml::DTrees::Node::Node | ( | ) |
| int cv::ml::DTrees::Node::classIdx |
類索引已標準化為 0..class_count-1 範圍並分配給節點。它在分類樹和樹整合中內部使用。
| int cv::ml::DTrees::Node::defaultDir |
預設方向(-1:左,+1:右)。它在缺少值的情況下很有用。
| int cv::ml::DTrees::Node::left |
左子節點的索引。
| int cv::ml::DTrees::Node::parent |
父節點的索引。
| int cv::ml::DTrees::Node::right |
右子節點的索引。
| int cv::ml::DTrees::Node::split |
第一個分割的索引。
| double cv::ml::DTrees::Node::value |
節點處的值:分類時的類標籤或迴歸時的估計函式值。