fit#
- ECM.fit(X, mixture, once_in_iterations=1, *, parameter_groups=None)[исходный код]#
Fit mixture model parameters using the ECM algorithm.
- Параметры:
X (ArrayLike) – Input data sample.
mixture (MixtureModel) – Initial mixture model to fit; not modified in-place.
once_in_iterations (int, optional) – Iteration recording frequency in history. Defaults to 1.
parameter_groups (Mapping[int, Sequence[set[str]]] | None, optional) – Component indices mapped to ordered, non-empty, disjoint groups covering all free parameters. Groups are optimized sequentially; omitted components use one joint step. Defaults to None.
- Результат:
Fitted mixture model with estimated parameters.
- Тип результата:
- Исключение:
ValueError – If a component index is invalid or its groups do not partition its free parameters into non-empty, disjoint sets. Also if the starting mixture is invalid for the sample; see
BaseEstimator.fit.