You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Felix Cheung (JIRA)" <ji...@apache.org> on 2017/04/07 20:34:42 UTC
[jira] [Updated] (SPARK-20258) SparkR logistic regression example
did not converge in programming guide
[ https://issues.apache.org/jira/browse/SPARK-20258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Cheung updated SPARK-20258:
---------------------------------
Fix Version/s: 2.2.0
> SparkR logistic regression example did not converge in programming guide
> ------------------------------------------------------------------------
>
> Key: SPARK-20258
> URL: https://issues.apache.org/jira/browse/SPARK-20258
> Project: Spark
> Issue Type: Bug
> Components: SparkR
> Affects Versions: 2.1.0
> Reporter: Wayne Zhang
> Assignee: Wayne Zhang
> Fix For: 2.2.0
>
>
> SparkR logistic regression example did not converge in programming guide. All estimates are essentially zero:
> {code}
> training2 <- read.df("data/mllib/sample_binary_classification_data.txt", source = "libsvm")
> df_list2 <- randomSplit(training2, c(7,3), 2)
> binomialDF <- df_list2[[1]]
> binomialTestDF <- df_list2[[2]]
> binomialGLM <- spark.glm(binomialDF, label ~ features, family = "binomial")
> 17/04/07 11:42:03 WARN WeightedLeastSquares: Cholesky solver failed due to singular covariance matrix. Retrying with Quasi-Newton solver.
> > summary(binomialGLM)
> Deviance Residuals:
> (Note: These are approximate quantiles with relative error <= 0.01)
> Min 1Q Median 3Q Max
> -2.4828e-06 -2.4063e-06 2.2778e-06 2.4350e-06 2.7722e-06
> Coefficients:
> Estimate
> (Intercept) 9.0255e+00
> features_0 0.0000e+00
> features_1 0.0000e+00
> features_2 0.0000e+00
> features_3 0.0000e+00
> features_4 0.0000e+00
> features_5 0.0000e+00
> features_6 0.0000e+00
> features_7 0.0000e+00
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org