spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject spark git commit: SPARK-4610 addendum: [Minor] [MLlib] Minor doc fix in GBT classification example
Date Wed, 18 Feb 2015 10:14:13 GMT
Repository: spark
Updated Branches:
  refs/heads/master c1b6fa983 -> e79a7a626


SPARK-4610 addendum: [Minor] [MLlib] Minor doc fix in GBT classification example

numClassesForClassification has been renamed to numClasses.

Author: MechCoder <manojkumarsivaraj334@gmail.com>

Closes #4672 from MechCoder/minor-doc and squashes the following commits:

d2ddb7f [MechCoder] Minor doc fix in GBT classification example


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/e79a7a62
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/e79a7a62
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/e79a7a62

Branch: refs/heads/master
Commit: e79a7a626d9ac2e2474b9d5008c6b5d07df5c6f1
Parents: c1b6fa9
Author: MechCoder <manojkumarsivaraj334@gmail.com>
Authored: Wed Feb 18 10:13:28 2015 +0000
Committer: Sean Owen <sowen@cloudera.com>
Committed: Wed Feb 18 10:13:40 2015 +0000

----------------------------------------------------------------------
 docs/mllib-ensembles.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/e79a7a62/docs/mllib-ensembles.md
----------------------------------------------------------------------
diff --git a/docs/mllib-ensembles.md b/docs/mllib-ensembles.md
index 23ede04..fb90b70 100644
--- a/docs/mllib-ensembles.md
+++ b/docs/mllib-ensembles.md
@@ -458,7 +458,7 @@ val (trainingData, testData) = (splits(0), splits(1))
 //  The defaultParams for Classification use LogLoss by default.
 val boostingStrategy = BoostingStrategy.defaultParams("Classification")
 boostingStrategy.numIterations = 3 // Note: Use more iterations in practice.
-boostingStrategy.treeStrategy.numClassesForClassification = 2
+boostingStrategy.treeStrategy.numClasses = 2
 boostingStrategy.treeStrategy.maxDepth = 5
 //  Empty categoricalFeaturesInfo indicates all features are continuous.
 boostingStrategy.treeStrategy.categoricalFeaturesInfo = Map[Int, Int]()


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message