We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a4f716 commit a709f49Copy full SHA for a709f49
mllib/src/main/scala/org/apache/spark/mllib/stat/test/ChiSqTest.scala
@@ -109,9 +109,9 @@ private[stat] object ChiSqTest extends Logging {
109
}
110
i += 1
111
distinctLabels += label
112
- val featureArray = features.toArray
+ val brzFeatures = features.toBreeze
113
(startCol until endCol).map { col =>
114
- val feature = featureArray(col)
+ val feature = brzFeatures(col)
115
allDistinctFeatures(col) += feature
116
(col, feature, label)
117
0 commit comments