BaseMixtureModelIterator
- class BaseMixtureModelIterator(weights, dists)[source]
Bases:
object
Iterator for
serums.models.BaseMixutreModel
.- weights
Each element is a float for the weight of a distribution.
- Type:
list
- dists
Each element is a
serums.models.BaseSingleModel
.- Type:
list
- idx
Current index for the iterator.
- Type:
int
- __init__(weights, dists)[source]
Initialize an object.
- Parameters:
weights (list) – Each element is a float for the weight of a distribution.
dists (list) – Each element is a
serums.models.BaseSingleModel
.
Methods
Initialize an object.