Skip to content

This is an example of Linear Regression done in SparkML and using the class PolynomialExpansion.

Notifications You must be signed in to change notification settings

Catadanna/Linear-Polynomial-Regression-Scala-SparkML

Repository files navigation

Linear-Polynomial-Regression-Scala-SparkML

PolyLinearRegression.scala : This is an example of Linear Regression done in SparkML and using the class PolynomialExpansion.

NormalEquation.scala : Example of normal equation in SparkML with Scala, using DenseMatrix, DenseVector and RowMatrix

Tools.scala : Various functions used in the classes.

Among them :

Function which converts DataFrame to DenseMatrix

Function which converts DataFrame to DenseVector

Function which converts DataFrame to RDD etc. ...

Releases

No releases published

Packages

No packages published

Languages