Github user wangmiao1981 commented on a diff in the pull request: https://github.com/apache/spark/pull/16148#discussion_r90933235 --- Diff: docs/sparkr.md --- @@ -512,39 +512,33 @@ head(teenagers) # Machine Learning -SparkR supports the following machine learning algorithms currently: `Generalized Linear Model`, `Accelerated Failure Time (AFT) Survival Regression Model`, `Naive Bayes Model` and `KMeans Model`. -Under the hood, SparkR uses MLlib to train the model. -Users can call `summary` to print a summary of the fitted model, [predict](api/R/predict.html) to make predictions on new data, and [write.ml](api/R/write.ml.html)/[read.ml](api/R/read.ml.html) to save/load fitted models. -SparkR supports a subset of the available R formula operators for model fitting, including â~â, â.â, â:â, â+â, and â-â. - ## Algorithms -### Generalized Linear Model - -[spark.glm()](api/R/spark.glm.html) or [glm()](api/R/glm.html) fits generalized linear model against a Spark DataFrame. -Currently "gaussian", "binomial", "poisson" and "gamma" families are supported. -{% include_example glm r/ml.R %} - -### Accelerated Failure Time (AFT) Survival Regression Model - -[spark.survreg()](api/R/spark.survreg.html) fits an accelerated failure time (AFT) survival regression model on a SparkDataFrame. -Note that the formula of [spark.survreg()](api/R/spark.survreg.html) does not support operator '.' currently. -{% include_example survreg r/ml.R %} - -### Naive Bayes Model - -[spark.naiveBayes()](api/R/spark.naiveBayes.html) fits a Bernoulli naive Bayes model against a SparkDataFrame. Only categorical data is supported. -{% include_example naiveBayes r/ml.R %} - -### KMeans Model +SparkR supports the following machine learning algorithms currently: + +* `spark.glm` or `glm`: `Generalized Linear Model` +* `spark.survreg`: `Accelerated Failure Time (AFT) Survival Regressio Model` --- End diff -- Typo: `Regressio` -> `Regression`
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org