Skip to content
Snippets Groups Projects
  • Joseph K. Bradley's avatar
    47ccd5e7
    [SPARK-2851] [mllib] DecisionTree Python consistency update · 47ccd5e7
    Joseph K. Bradley authored
    Added 6 static train methods to match Python API, but without default arguments (but with Python default args noted in docs).
    
    Added factory classes for Algo and Impurity, but made private[mllib].
    
    CC: mengxr dorx  Please let me know if there are other changes which would help with API consistency---thanks!
    
    Author: Joseph K. Bradley <joseph.kurata.bradley@gmail.com>
    
    Closes #1798 from jkbradley/dt-python-consistency and squashes the following commits:
    
    6f7edf8 [Joseph K. Bradley] Merge remote-tracking branch 'upstream/master' into dt-python-consistency
    a0d7dbe [Joseph K. Bradley] DecisionTree: In Java-friendly train* methods, changed to use JavaRDD instead of RDD.
    ee1d236 [Joseph K. Bradley] DecisionTree API updates: * Removed train() function in Python API (tree.py) ** Removed corresponding function in Scala/Java API (the ones taking basic types)
    00f820e [Joseph K. Bradley] Merge remote-tracking branch 'upstream/master' into dt-python-consistency
    fe6dbfa [Joseph K. Bradley] removed unnecessary imports
    e358661 [Joseph K. Bradley] DecisionTree API change: * Added 6 static train methods to match Python API, but without default arguments (but with Python default args noted in docs).
    c699850 [Joseph K. Bradley] a few doc comments
    eaf84c0 [Joseph K. Bradley] Added DecisionTree static train() methods API to match Python, but without default parameters
    47ccd5e7
    History
    [SPARK-2851] [mllib] DecisionTree Python consistency update
    Joseph K. Bradley authored
    Added 6 static train methods to match Python API, but without default arguments (but with Python default args noted in docs).
    
    Added factory classes for Algo and Impurity, but made private[mllib].
    
    CC: mengxr dorx  Please let me know if there are other changes which would help with API consistency---thanks!
    
    Author: Joseph K. Bradley <joseph.kurata.bradley@gmail.com>
    
    Closes #1798 from jkbradley/dt-python-consistency and squashes the following commits:
    
    6f7edf8 [Joseph K. Bradley] Merge remote-tracking branch 'upstream/master' into dt-python-consistency
    a0d7dbe [Joseph K. Bradley] DecisionTree: In Java-friendly train* methods, changed to use JavaRDD instead of RDD.
    ee1d236 [Joseph K. Bradley] DecisionTree API updates: * Removed train() function in Python API (tree.py) ** Removed corresponding function in Scala/Java API (the ones taking basic types)
    00f820e [Joseph K. Bradley] Merge remote-tracking branch 'upstream/master' into dt-python-consistency
    fe6dbfa [Joseph K. Bradley] removed unnecessary imports
    e358661 [Joseph K. Bradley] DecisionTree API change: * Added 6 static train methods to match Python API, but without default arguments (but with Python default args noted in docs).
    c699850 [Joseph K. Bradley] a few doc comments
    eaf84c0 [Joseph K. Bradley] Added DecisionTree static train() methods API to match Python, but without default parameters