Skip to content

Commit a709f49

Browse files
committed
use to breeze for features
1 parent 2a4f716 commit a709f49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mllib/src/main/scala/org/apache/spark/mllib/stat/test/ChiSqTest.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ private[stat] object ChiSqTest extends Logging {
109109
}
110110
i += 1
111111
distinctLabels += label
112-
val featureArray = features.toArray
112+
val brzFeatures = features.toBreeze
113113
(startCol until endCol).map { col =>
114-
val feature = featureArray(col)
114+
val feature = brzFeatures(col)
115115
allDistinctFeatures(col) += feature
116116
(col, feature, label)
117117
}

0 commit comments

Comments
 (0)