Skip to content

Commit 5fd56c3

Browse files
committed
init pr
1 parent 33ae243 commit 5fd56c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ object ChiSqSelectorModel extends Loader[ChiSqSelectorModel] {
144144
val dataArray = Array.tabulate(model.selectedFeatures.length) { i =>
145145
Data(model.selectedFeatures(i))
146146
}
147-
spark.createDataFrame(dataArray).repartition(1).write.parquet(Loader.dataPath(path))
147+
spark.createDataFrame(sc.makeRDD(dataArray, 1)).write.parquet(Loader.dataPath(path))
148148
}
149149

150150
def load(sc: SparkContext, path: String): ChiSqSelectorModel = {

0 commit comments

Comments
 (0)