File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
examples/src/main/python/ml Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ Refer to the [Python API docs](api/python/pyspark.ml.html#pyspark.ml.clustering.
153153
154154A [ Gaussian Mixture Model] ( http://en.wikipedia.org/wiki/Mixture_model#Multivariate_Gaussian_mixture_model )
155155represents 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 )
158158algorithm 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 " >
Original file line number Diff line number Diff line change 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: " )
You can’t perform that action at this time.
0 commit comments