MCPcopy Create free account
hub / github.com/rushter/MLAlgorithms / __init__

Method __init__

mla/gaussian_mixture.py:44–50  ·  view source on GitHub ↗
(self, K=4, init="random", max_iters=500, tolerance=1e-3)

Source from the content-addressed store, hash-verified

42 y_required = False
43
44 def __init__(self, K=4, init="random", max_iters=500, tolerance=1e-3):
45 self.K = K
46 self.max_iters = max_iters
47 self.init = init
48 self.assignments = None
49 self.likelihood = []
50 self.tolerance = tolerance
51
52 def fit(self, X, y=None):
53 """Perform Expectation–Maximization (EM) until converged."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected