aboutsummaryrefslogtreecommitdiff
path: root/mllib/src/main/scala/org/apache/spark/ml/classification/DecisionTreeClassifier.scala
diff options
context:
space:
mode:
authorFeynman Liang <fliang@databricks.com>2015-08-07 17:19:48 -0700
committerJoseph K. Bradley <joseph@databricks.com>2015-08-07 17:19:48 -0700
commitcd540c1e59561ad1fdac59af6170944c60e685d8 (patch)
tree5fa78193b6030d87617d48f82933a99566e9814f /mllib/src/main/scala/org/apache/spark/ml/classification/DecisionTreeClassifier.scala
parent49702bd738de681255a7177339510e0e1b25a8db (diff)
downloadspark-cd540c1e59561ad1fdac59af6170944c60e685d8.tar.gz
spark-cd540c1e59561ad1fdac59af6170944c60e685d8.tar.bz2
spark-cd540c1e59561ad1fdac59af6170944c60e685d8.zip
[SPARK-9756] [ML] Make constructors in ML decision trees private
These should be made private until there is a public constructor for providing `rootNode: Node` to use these constructors. jkbradley Author: Feynman Liang <fliang@databricks.com> Closes #8046 from feynmanliang/SPARK-9756 and squashes the following commits: 2cbdf08 [Feynman Liang] Make RFRegressionModel aux constructor private a06f596 [Feynman Liang] Make constructors in ML decision trees private
Diffstat (limited to 'mllib/src/main/scala/org/apache/spark/ml/classification/DecisionTreeClassifier.scala')
-rw-r--r--mllib/src/main/scala/org/apache/spark/ml/classification/DecisionTreeClassifier.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/ml/classification/DecisionTreeClassifier.scala b/mllib/src/main/scala/org/apache/spark/ml/classification/DecisionTreeClassifier.scala
index f2b992f8ba..29598f3f05 100644
--- a/mllib/src/main/scala/org/apache/spark/ml/classification/DecisionTreeClassifier.scala
+++ b/mllib/src/main/scala/org/apache/spark/ml/classification/DecisionTreeClassifier.scala
@@ -117,7 +117,7 @@ final class DecisionTreeClassificationModel private[ml] (
* Construct a decision tree classification model.
* @param rootNode Root node of tree, with other nodes attached.
*/
- def this(rootNode: Node, numClasses: Int) =
+ private[ml] def this(rootNode: Node, numClasses: Int) =
this(Identifiable.randomUID("dtc"), rootNode, numClasses)
override protected def predict(features: Vector): Double = {