[SPARK-20258][Doc][SparkR] Fix SparkR logistic regression example in programming guide (did not converge) #17571
[SPARK-20258][Doc][SparkR] Fix SparkR logistic regression example in programming guide (did not converge) #17571actuaryzhang wants to merge 2 commits intoapache:masterfrom
Conversation
| summary(gaussianGLM2) | ||
|
|
||
| # Fit a generalized linear model of family "binomial" with spark.glm | ||
| training2 <- read.df("data/mllib/sample_binary_classification_data.txt", source = "libsvm") |
There was a problem hiding this comment.
is this an issue with binary_classification_data data?
There was a problem hiding this comment.
just a bad example.
|
@felixcheung |
| # Fit a generalized linear model of family "binomial" with spark.glm | ||
| training2 <- read.df("data/mllib/sample_binary_classification_data.txt", source = "libsvm") | ||
| df_list2 <- randomSplit(training2, c(7,3), 2) | ||
| training2 <- read.df("/data/mllib/sample_multiclass_classification_data.txt", source = "libsvm") |
There was a problem hiding this comment.
actually, you might need to leave it as relative path, ie. not starting with /
There was a problem hiding this comment.
Thanks! copy paste error. Corrected now.
|
Test build #75613 has finished for PR 17571 at commit
|
|
Test build #75615 has finished for PR 17571 at commit
|
|
right, tests don't run example anyway... |
|
merged to master. |
What changes were proposed in this pull request?
SparkR logistic regression example did not converge in programming guide (for IRWLS). All estimates are essentially zero: