Skip to content

Commit c41b1b6

Browse files
committed
fix pyspark unit test
1 parent 7ad7a71 commit c41b1b6

File tree

1 file changed

+1
-1
lines changed
  • mllib/src/main/scala/org/apache/spark/mllib/tree/model

1 file changed

+1
-1
lines changed

mllib/src/main/scala/org/apache/spark/mllib/tree/model/Node.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class Node (
157157
}
158158
val prefix: String = " " * indentFactor
159159
if (isLeaf) {
160-
prefix + s"Predict: $predict\n"
160+
prefix + s"Predict: ${predict.predict}\n"
161161
} else {
162162
prefix + s"If ${splitToString(split.get, left=true)}\n" +
163163
leftNode.get.subtreeToString(indentFactor + 1) +

0 commit comments

Comments
 (0)