Add nodes/leaves/depth to STree & ODTE
This commit is contained in:
@@ -5,6 +5,18 @@ namespace pywrap {
|
||||
{
|
||||
validHyperparameters = { "n_jobs", "n_estimators", "random_state" };
|
||||
}
|
||||
int ODTE::getNumberOfNodes() const
|
||||
{
|
||||
return callMethodInt("get_nodes");
|
||||
}
|
||||
int ODTE::getNumberOfEdges() const
|
||||
{
|
||||
return callMethodInt("get_leaves");
|
||||
}
|
||||
int ODTE::getNumberOfStates() const
|
||||
{
|
||||
return callMethodInt("get_depth");
|
||||
}
|
||||
std::string ODTE::graph()
|
||||
{
|
||||
return callMethodString("graph");
|
||||
|
Reference in New Issue
Block a user