Github user etrain commented on a diff in the pull request:
https://github.com/apache/spark/pull/886#discussion_r13926555
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/tree/DecisionTree.scala ---
@@ -212,7 +211,9 @@ object DecisionTree extends Serializable with Logging {
* @return a DecisionTreeModel that can be used for prediction
*/
def train(input: RDD[LabeledPoint], strategy: Strategy):
DecisionTreeModel = {
- new DecisionTree(strategy).train(input: RDD[LabeledPoint])
+ // Converting from standard instance format to weighted input format
for tree training
--- End diff --
Maybe this is better served with an implicit since I think we'll want to
re-use labeled point elsewhere and having an automatic conversion might be nice.
---
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.
---