Closed Rambatino closed 5 years ago
Interestingly, because the tree will stop splitting if one of the params is reached e.g. min parent node size, it could yield: max depth 28 with min parent node size 38, the latter take precedent. If you then applied it to a much much larger unseen dataset, the former - max depth - could have more of an impact.
Why was that canceled?
@VivianMagri it was cancelled because it became stale and there didn't seem to be much impetus for this functionality. What functionality are you after?
This PR contains a class called BestTree, that takes in predictors and target and uses hyperopts to find the best set of params using train/test split for the data.
It is used as follows:
This involved creating the function
.predict()
, which applies the tree's model to a data set. E.g.:It comes with a way of running it from the command line.
Run with standard params:
Find better tree: