We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ad7a71 commit c41b1b6Copy full SHA for c41b1b6
mllib/src/main/scala/org/apache/spark/mllib/tree/model/Node.scala
@@ -157,7 +157,7 @@ class Node (
157
}
158
val prefix: String = " " * indentFactor
159
if (isLeaf) {
160
- prefix + s"Predict: $predict\n"
+ prefix + s"Predict: ${predict.predict}\n"
161
} else {
162
prefix + s"If ${splitToString(split.get, left=true)}\n" +
163
leftNode.get.subtreeToString(indentFactor + 1) +
0 commit comments