Skip to content
Prev Previous commit
Next Next commit
a few doc comments
  • Loading branch information
jkbradley committed Aug 5, 2014
commit c69985063c22b1802d7755bd6b12e1e8cd76ba74
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ object DecisionTree extends Serializable with Logging {
new DecisionTree(strategy).train(input)
}

// Optional arguments in Python: maxBins
def train(
input: RDD[LabeledPoint],
algo: Algo,
Expand All @@ -309,6 +310,7 @@ object DecisionTree extends Serializable with Logging {
maxDepth: Int,
maxBins: Int): DecisionTreeModel = ???

// Optional arguments in Python: all but input, numClassesForClassification
def trainClassifier(
input: RDD[LabeledPoint],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RDD -> JavaRDD. Sorry I missed this in the first pass.

numClassesForClassification: Int,
Expand All @@ -317,6 +319,7 @@ object DecisionTree extends Serializable with Logging {
maxDepth: Int,
maxBins: Int): DecisionTreeModel = ???

// Optional arguments in Python: all but input
def trainRegressor(
input: RDD[LabeledPoint],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto: RDD -> JavaRDD.

categoricalFeaturesInfo: Map[Int,Int],
Expand Down