Fix unintended nested if in partition

This commit is contained in:
2021-04-08 08:27:31 +02:00
parent 0f89b044f1
commit c36f685263
2 changed files with 10 additions and 10 deletions

View File

@@ -460,9 +460,9 @@ class Splitter:
# in predcit time just use the column computed in train time
# is taking the classifier of class <col>
col = node.get_partition_column()
if col == -1:
# No partition is producing information gain
data = np.ones(data.shape)
if col == -1:
# No partition is producing information gain
data = np.ones(data.shape)
data = data[:, col]
self._up = data > 0