-
- Downloads
Center & scale variables in Ridge, Lasso.
Also add a unit test that checks if ridge regression lowers cross-validation error.
Showing
- mllib/src/main/scala/spark/mllib/regression/Lasso.scala 40 additions, 5 deletionsmllib/src/main/scala/spark/mllib/regression/Lasso.scala
- mllib/src/main/scala/spark/mllib/regression/LinearRegression.scala 22 additions, 22 deletions.../main/scala/spark/mllib/regression/LinearRegression.scala
- mllib/src/main/scala/spark/mllib/regression/RidgeRegression.scala 67 additions, 28 deletions...c/main/scala/spark/mllib/regression/RidgeRegression.scala
- mllib/src/main/scala/spark/mllib/util/LinearDataGenerator.scala 10 additions, 14 deletions...src/main/scala/spark/mllib/util/LinearDataGenerator.scala
- mllib/src/main/scala/spark/mllib/util/MLUtils.scala 5 additions, 5 deletionsmllib/src/main/scala/spark/mllib/util/MLUtils.scala
- mllib/src/test/java/spark/mllib/regression/JavaLassoSuite.java 4 additions, 4 deletions.../src/test/java/spark/mllib/regression/JavaLassoSuite.java
- mllib/src/test/java/spark/mllib/regression/JavaLinearRegressionSuite.java 58 additions, 61 deletions...ava/spark/mllib/regression/JavaLinearRegressionSuite.java
- mllib/src/test/java/spark/mllib/regression/JavaRidgeRegressionSuite.java 76 additions, 63 deletions...java/spark/mllib/regression/JavaRidgeRegressionSuite.java
- mllib/src/test/scala/spark/mllib/regression/LinearRegressionSuite.scala 23 additions, 4 deletions.../scala/spark/mllib/regression/LinearRegressionSuite.scala
- mllib/src/test/scala/spark/mllib/regression/RidgeRegressionSuite.scala 42 additions, 22 deletions...t/scala/spark/mllib/regression/RidgeRegressionSuite.scala
Loading
Please register or sign in to comment