Github user etrain commented on a diff in the pull request:
https://github.com/apache/spark/pull/886#discussion_r13926460
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/tree/DecisionTree.scala ---
@@ -45,7 +46,7 @@ class DecisionTree (private val strategy: Strategy)
extends Serializable with Lo
* @param input RDD of
[[org.apache.spark.mllib.regression.LabeledPoint]] used as training data
* @return a DecisionTreeModel that can be used for prediction
*/
- def train(input: RDD[LabeledPoint]): DecisionTreeModel = {
+ def train(input: RDD[WeightedLabeledPoint]): DecisionTreeModel = {
--- End diff --
If we're going to change the interface, it might be nice to have an
implicit conversion between LabeledPoint and WeightedLabeledPoint (which
assigns weight 1 to everything). I think the common case is going to be using
unweighted anyway.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---