BMM#

Classes#

class utils.bmm.BetaMixture1D(max_iters=10, alphas_init=[1, 2], betas_init=[2, 1], weights_init=[0.5, 0.5])[source]#

Bases: object

Fits a Beta-Mixture model to the data.

This code is based on the https://github.com/PaulAlbert31/LabelNoiseCorrection/blob/master/utils.py

create_lookup(y)[source]#
fit(x)[source]#
static fit_beta_weighted(x, w)[source]#
likelihood(x, y)[source]#
look_lookup(x)[source]#
static normalize(x, x_min, x_max)[source]#
static outlier_remove(x)[source]#
posterior(x, y)[source]#
predict(x)[source]#
probability(x)[source]#
responsibilities(x)[source]#
score_samples(x)[source]#
weighted_likelihood(x, y)[source]#