Provides servies for preparing initial means and covariances for Expectation-Maximization algorithm. More...
Public Member Functions | |
def | __init__ (self, sample, amount) |
Constructs EM initializer. More... | |
def | initialize (self, init_type=ema_init_type.KMEANS_INITIALIZATION) |
Calculates initial parameters for EM algorithm: means and covariances using specified strategy. More... | |
Provides servies for preparing initial means and covariances for Expectation-Maximization algorithm.
Initialization strategy is defined by enumerator 'ema_init_type': random initialization and kmeans with kmeans++ initialization. Here an example of initialization using kmeans strategy:
def pyclustering.cluster.ema.ema_initializer.__init__ | ( | self, | |
sample, | |||
amount | |||
) |
def pyclustering.cluster.ema.ema_initializer.initialize | ( | self, | |
init_type = ema_init_type.KMEANS_INITIALIZATION |
|||
) |
Calculates initial parameters for EM algorithm: means and covariances using specified strategy.
[in] | init_type | (ema_init_type): Strategy for initialization. |