component_lpdf_matrix#
- MixtureModel.component_lpdf_matrix(X)[исходный код]#
Log-densities of every component, without the mixture weights.
- Параметры:
X (ArrayLike) – The input data points.
- Результат:
An array of shape
(*X.shape, n_components)whose last axis indexes the components. For a sample ofnpoints this is an(n, n_components)matrix. The log-densities of one component are contiguous in memory (the matrix is a view of a(n_components, *X.shape)array), which makes reductions over the component axis, such aslogsumexpin the E-step, several times faster than on a row-major matrix.- Тип результата:
FloatArray