Skip to content
Snippets Groups Projects
Commit 6580929f authored by Reynold Xin's avatar Reynold Xin
Browse files

[HOTFIX] MLlib build break.

parent c3ba4d4c
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,7 @@ object NaiveBayesModel extends Loader[NaiveBayesModel] { ...@@ -92,7 +92,7 @@ object NaiveBayesModel extends Loader[NaiveBayesModel] {
def save(sc: SparkContext, path: String, data: Data): Unit = { def save(sc: SparkContext, path: String, data: Data): Unit = {
val sqlContext = new SQLContext(sc) val sqlContext = new SQLContext(sc)
import sqlContext._ import sqlContext.implicits._
// Create JSON metadata. // Create JSON metadata.
val metadataRDD = val metadataRDD =
......
...@@ -49,7 +49,7 @@ private[classification] object GLMClassificationModel { ...@@ -49,7 +49,7 @@ private[classification] object GLMClassificationModel {
intercept: Double, intercept: Double,
threshold: Option[Double]): Unit = { threshold: Option[Double]): Unit = {
val sqlContext = new SQLContext(sc) val sqlContext = new SQLContext(sc)
import sqlContext._ import sqlContext.implicits._
// Create JSON metadata. // Create JSON metadata.
val metadataRDD = val metadataRDD =
......
...@@ -45,7 +45,7 @@ private[regression] object GLMRegressionModel { ...@@ -45,7 +45,7 @@ private[regression] object GLMRegressionModel {
weights: Vector, weights: Vector,
intercept: Double): Unit = { intercept: Double): Unit = {
val sqlContext = new SQLContext(sc) val sqlContext = new SQLContext(sc)
import sqlContext._ import sqlContext.implicits._
// Create JSON metadata. // Create JSON metadata.
val metadataRDD = val metadataRDD =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment