Skip to content

Commit

Permalink
fix the issue with the sample R code
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenk committed Jun 21, 2015
1 parent e2140ba commit 0b0c8c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class LinearRegressionSuite extends SparkFunSuite with MLlibTestSparkContext {
* data <- read.csv("path", header=FALSE, stringsAsFactors=FALSE)
* features <- as.matrix(data.frame(as.numeric(data$V2), as.numeric(data$V3)))
* label <- as.numeric(data$V1)
* weights <- coef(glmnet(features, label, family="gaussian", alpha = 0, lambda = 0))
* weights <- coef(glmnet(features, label, family="gaussian", alpha = 0, intercept = false))
* > weights
* 3 x 1 sparse Matrix of class "dgCMatrix"
* s0
Expand Down

0 comments on commit 0b0c8c0

Please sign in to comment.