without_component#

MixtureModel.without_component(index)[исходный код]#

Return a new mixture without the component at index.

The weights of the remaining components are renormalized to sum to 1.

Параметры:

index (int) – The index of the component to remove; negative indices are not supported.

Результат:

A new mixture; this mixture is left unchanged.

Тип результата:

MixtureModel

Исключение:
  • IndexError – If the component index is out of range.

  • ValueError – If an attempt is made to remove the last component or the only component with positive weight.