Skip to content

Commit f56344b

Browse files
committed
address review comments
1 parent f2d35dd commit f56344b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

docs/ml-clustering.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Refer to the [Python API docs](api/python/pyspark.ml.html#pyspark.ml.clustering.
153153

154154
A [Gaussian Mixture Model](http://en.wikipedia.org/wiki/Mixture_model#Multivariate_Gaussian_mixture_model)
155155
represents a composite distribution whereby points are drawn from one of *k* Gaussian sub-distributions,
156-
each with its own probability. The spark.ml implementation uses the
156+
each with its own probability. The `spark.ml` implementation uses the
157157
[expectation-maximization](http://en.wikipedia.org/wiki/Expectation%E2%80%93maximization_algorithm)
158158
algorithm to induce the maximum-likelihood model given a set of samples.
159159

@@ -208,7 +208,6 @@ model.
208208
</tbody>
209209
</table>
210210

211-
212211
### Example
213212

214213
<div class="codetabs">

examples/src/main/python/ml/gaussian_mixture_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# loads data
3939
dataset = spark.read.format("libsvm").load("data/mllib/sample_kmeans_data.txt")
4040

41-
gmm = GaussianMixture().setK(2).setSeed(10)
41+
gmm = GaussianMixture().setK(2)
4242
model = gmm.fit(dataset)
4343

4444
print("Gaussians: ")

0 commit comments

Comments
 (0)