From dd0614fd618ad28cb77aecfbd49bb319b98fdba0 Mon Sep 17 00:00:00 2001 From: Yanbo Liang Date: Mon, 17 Aug 2015 23:57:02 -0700 Subject: [SPARK-10076] [ML] make MultilayerPerceptronClassifier layers and weights public Fix the issue that ```layers``` and ```weights``` should be public variables of ```MultilayerPerceptronClassificationModel```. Users can not get ```layers``` and ```weights``` from a ```MultilayerPerceptronClassificationModel``` currently. Author: Yanbo Liang Closes #8263 from yanboliang/mlp-public. --- .../spark/ml/classification/MultilayerPerceptronClassifier.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mllib/src/main/scala/org/apache/spark/ml/classification/MultilayerPerceptronClassifier.scala b/mllib/src/main/scala/org/apache/spark/ml/classification/MultilayerPerceptronClassifier.scala index c154561886..ccca4ecc00 100644 --- a/mllib/src/main/scala/org/apache/spark/ml/classification/MultilayerPerceptronClassifier.scala +++ b/mllib/src/main/scala/org/apache/spark/ml/classification/MultilayerPerceptronClassifier.scala @@ -172,8 +172,8 @@ class MultilayerPerceptronClassifier(override val uid: String) @Experimental class MultilayerPerceptronClassificationModel private[ml] ( override val uid: String, - layers: Array[Int], - weights: Vector) + val layers: Array[Int], + val weights: Vector) extends PredictionModel[Vector, MultilayerPerceptronClassificationModel] with Serializable { -- cgit v1.2.3