Skip to content

Commit 747ca68

Browse files
committed
Update spark.gaussianMixture example.
1 parent b8a42f2 commit 747ca68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/src/main/r/ml/gaussianMixture.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ training <- df
3131
test <- df
3232

3333
# Fit a gaussian mixture clustering model with spark.gaussianMixture
34-
model <- spark.gaussianMixture(training, label ~ features, k = 2)
34+
model <- spark.gaussianMixture(training, ~ features, k = 2)
3535

3636
# Model summary
3737
summary(model)

0 commit comments

Comments
 (0)