Skip to content

Commit 306120f

Browse files
committed
Fixed typo in DecisionTreeModel.scala doc
1 parent eaa1dcf commit 306120f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class DecisionTreeModel(val topNode: Node, val algo: Algo) extends Serializable
4646
* Predict values for the given data set using the model trained.
4747
*
4848
* @param features RDD representing data points to be predicted
49-
* @return RDD[Int] where each entry contains the corresponding prediction
49+
* @return RDD of predictions for each of the given data points
5050
*/
5151
def predict(features: RDD[Vector]): RDD[Double] = {
5252
features.map(x => predict(x))

0 commit comments

Comments
 (0)