Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add Strategy new param doc
  • Loading branch information
Yuewei Na authored and Yuewei Na committed Jun 17, 2016
commit bf1acfdb7293ee63b31438972c25de683c852e7d
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class RandomForestRegressor @Since("1.4.0") (@Since("1.4.0") override val uid: S
val oldDataset: RDD[LabeledPoint] = extractLabeledPoints(dataset)
val strategy =
super.getOldStrategy(categoricalFeatures, numClasses = 0,
OldAlgo.Regression, getOldImpurity, classWeights = Array(1, 1))
OldAlgo.Regression, getOldImpurity, Array())

val instr = Instrumentation.create(this, oldDataset)
instr.logParams(params: _*)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ import org.apache.spark.mllib.tree.impurity.{Entropy, Gini, Impurity, Variance,
* E.g. 10 means that the cache will get checkpointed every 10 updates. If
* the checkpoint directory is not set in
* [[org.apache.spark.SparkContext]], this setting is ignored.
* @param classWeights Weights of classes used in classification problems. It will be ignored in
* regression problems.
*/
@Since("1.0.0")
class Strategy @Since("1.3.0") (
Expand Down