Skip to content

Commit 5a4a534

Browse files
committed
fixed scala style error in NaiveBayes
1 parent 3891bf2 commit 5a4a534

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mllib/src/main/scala/org/apache/spark/mllib/classification/NaiveBayes.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ object NaiveBayesModel extends Loader[NaiveBayesModel] {
111111
def thisClassName = "org.apache.spark.mllib.classification.NaiveBayesModel"
112112

113113
/** Model data for model import/export */
114-
case class Data(labels: Array[Double], pi: Array[Double], theta: Array[Array[Double]], modelType: String)
114+
case class Data(labels: Array[Double],
115+
pi: Array[Double],
116+
theta: Array[Array[Double]],
117+
modelType: String)
115118

116119
def save(sc: SparkContext, path: String, data: Data): Unit = {
117120
val sqlContext = new SQLContext(sc)

0 commit comments

Comments
 (0)