File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
mllib/src/main/scala/org/apache/spark/mllib/feature Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -47,16 +47,6 @@ private[spark] object ChiSqSelectorType extends Enumeration {
4747class 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 *
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments