Skip to content

Commit 6398f4c

Browse files
author
Peng, Meng
committed
Change MimaExcludes
1 parent ec74dde commit 6398f4c

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

mllib/src/main/scala/org/apache/spark/mllib/feature/ChiSqSelector.scala

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,6 @@ private[spark] object ChiSqSelectorType extends Enumeration {
4747
class ChiSqSelectorModel @Since("1.3.0") (
4848
@Since("1.3.0") val selectedFeatures: Array[Int]) extends VectorTransformer with Saveable {
4949

50-
protected def isSorted(array: Array[Int]): Boolean = {
51-
var i = 1
52-
val len = array.length
53-
while (i < len) {
54-
if (array(i) < array(i-1)) return false
55-
i += 1
56-
}
57-
true
58-
}
59-
6050
/**
6151
* Applies transformation on a vector.
6252
*

project/MimaExcludes.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,9 @@ object MimaExcludes {
787787
) ++ Seq(
788788
// [SPARK-14743] Improve delegation token handling in secure cluster
789789
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.spark.deploy.SparkHadoopUtil.getTimeFromNowToRenewal")
790+
) ++ Seq(
791+
// [SPARK-17017] Add chiSquare selector based on False Positive Rate (FPR) test
792+
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.spark.mllib.feature.ChiSqSelectorModel.isSorted")
790793
)
791794
}
792795

0 commit comments

Comments
 (0)