Fix depth init in fit

This commit is contained in:
2023-02-26 11:26:37 +01:00
parent 964555de20
commit 4a9664c4aa
3 changed files with 27 additions and 5 deletions

View File

@@ -22,6 +22,7 @@ namespace mdlp {
{
X = X_;
y = y_;
depth = 0;
cutPoints.clear();
if (X.size() != y.size()) {
throw invalid_argument("X and y must have the same size");