Skip to content

Commit 070d7fe

Browse files
committed
minor revision
1 parent e7c424a commit 070d7fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/pkg/vignettes/sparkr-vignettes.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ It supports both binary and multiclass classification, elastic-net regularizatio
782782
binomial and multinomial algorithms, or leave it unset and Spark will infer the correct variant.
783783

784784
We use a simple example to demonstrate `spark.logit` usage. In general, there are three steps of using `spark.logit`:
785-
1). Create a dataframe from proper data source; 2). Fit a logistic regression model using `spark.logit` with a proper parameter setting;
785+
1). Create a dataframe from a proper data source; 2). Fit a logistic regression model using `spark.logit` with a proper parameter setting;
786786
and 3). Obtain the coefficient matrix of the fitted model using `summary` and use the model for prediction with `predict`.
787787

788788
Binomial logistic regression
@@ -795,7 +795,7 @@ summary <- summary(model)
795795
head(summary)
796796
```
797797

798-
Fitted values on training data
798+
Predict values on training data
799799
```{r}
800800
fitted <- predict(model, training)
801801
```

0 commit comments

Comments
 (0)