Initializer#
- class Initializer[исходный код]#
Базовые классы:
ABCBuilds a starting
MixtureModelfrom a sample and component families.The initializer receives one family per component and returns the mixture from which EM starts. The common template method
initialize()gives every implementation, including a user-provided one, the same guarantees: the input is checked,random_stateis handled in one way, and the returned mixture is checked to be usable as the starting point of EM.To write an initializer, inherit this class and implement
_initialize; do not overrideinitialize().Methods
initialize(X, families[, random_state])Build a starting mixture from the sample.