Github user BenFradet commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12536#discussion_r60741253
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/tree/DecisionTree.scala ---
    @@ -62,8 +64,9 @@ class DecisionTree private[spark] (private val strategy: 
Strategy, private val s
        */
       @Since("1.2.0")
       def run(input: RDD[LabeledPoint]): DecisionTreeModel = {
    -    val rf = new RandomForest(strategy, numTrees = 1, 
featureSubsetStrategy = "all",
    -      seed = seed)
    +    val instr = Instrumentation.create(new DecisionTreeClassifier, input)
    +    val rf =
    +      new RandomForest(strategy, numTrees = 1, featureSubsetStrategy = 
"all", seed = seed, instr)
    --- End diff --
    
    I don't know what's the best way to handle this case: calling `run` from 
the old mllib api.
    
    Please advise @thunterdb 


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to