Skip to content

Commit

Permalink
Revert "Fix space problem"
Browse files Browse the repository at this point in the history
This reverts commit 95563a1.
  • Loading branch information
argentea committed May 5, 2023
1 parent 88c23fe commit 1481a56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ object LinearRegressionExample {
training.select("label", "features").printSchema()
val featuresRDD = training
.select("label", "features").rdd.map{
case Row(label:Double, feature:Vector) => new LabeledPoint(label, feature.toDense)
case Row(label: Double, feature: Vector) => new LabeledPoint(label, feature.toDense)
}
import spark.implicits._
val df = featuresRDD.toDF("label", "features")
Expand Down

0 comments on commit 1481a56

Please sign in to comment.