Skip to content

Commit e65c885

Browse files
hhbyyhjkbradley
authored andcommitted
[SPARK-11602][MLLIB] Refine visibility for 1.6 scala API audit
jira: https://issues.apache.org/jira/browse/SPARK-11602 Made a pass on the API change of 1.6. Open the PR for efficient discussion. Author: Yuhao Yang <hhbyyh@gmail.com> Closes apache#9939 from hhbyyh/auditScala. (cherry picked from commit 9fba9c8) Signed-off-by: Joseph K. Bradley <joseph@databricks.com>
1 parent b7b9f77 commit e65c885

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

mllib/src/main/scala/org/apache/spark/ml/feature/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* features into more suitable forms for model fitting.
2424
* Most feature transformers are implemented as {@link org.apache.spark.ml.Transformer}s, which
2525
* transforms one {@link org.apache.spark.sql.DataFrame} into another, e.g.,
26-
* {@link org.apache.spark.feature.HashingTF}.
26+
* {@link org.apache.spark.ml.feature.HashingTF}.
2727
* Some feature transformers are implemented as {@link org.apache.spark.ml.Estimator}}s, because the
2828
* transformation requires some aggregated information of the dataset, e.g., document
2929
* frequencies in {@link org.apache.spark.ml.feature.IDF}.

mllib/src/main/scala/org/apache/spark/ml/regression/LinearRegression.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ class LinearRegressionSummary private[regression] (
529529
val predictionCol: String,
530530
val labelCol: String,
531531
val model: LinearRegressionModel,
532-
val diagInvAtWA: Array[Double]) extends Serializable {
532+
private val diagInvAtWA: Array[Double]) extends Serializable {
533533

534534
@transient private val metrics = new RegressionMetrics(
535535
predictions

mllib/src/main/scala/org/apache/spark/mllib/clustering/BisectingKMeans.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ private object BisectingKMeans extends Serializable {
407407
*/
408408
@Since("1.6.0")
409409
@Experimental
410-
class ClusteringTreeNode private[clustering] (
410+
private[clustering] class ClusteringTreeNode private[clustering] (
411411
val index: Int,
412412
val size: Long,
413413
private val centerWithNorm: VectorWithNorm,

mllib/src/main/scala/org/apache/spark/mllib/clustering/BisectingKMeansModel.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ import org.apache.spark.rdd.RDD
3232
*/
3333
@Since("1.6.0")
3434
@Experimental
35-
class BisectingKMeansModel @Since("1.6.0") (
36-
@Since("1.6.0") val root: ClusteringTreeNode
35+
class BisectingKMeansModel private[clustering] (
36+
private[clustering] val root: ClusteringTreeNode
3737
) extends Serializable with Logging {
3838

3939
/**

0 commit comments

Comments
 (0)