executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
mixtures-and-classifiersGuides pomegranate GeneralMixtureModel and BayesClassifier workflows, including heterogeneous mixture fitting, supervised probabilistic classification, posterior probabilities, priors, EM settings, and component distributions.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill for unsupervised mixture modeling with GeneralMixtureModel and supervised probabilistic classification with BayesClassifier. These models are useful when a task asks for Gaussian mixtures, heterogeneous mixtures, EM fitting, class-conditional distributions, posterior component/class probabilities, prior-weighted inference, or semi-supervised-style hard priors.
Typical imports:
from pomegranate.distributions import Normal, Exponential
from pomegranate.gmm import GeneralMixtureModel
from pomegranate.bayes_classifier import BayesClassifier
Read references/api-reference.md for constructor signatures, fitting recipes, and priors. Run scripts/smoke_mixtures_classifiers.py after installation for a tiny check that both model families fit and predict.
GeneralMixtureModel(distributions, ...) when labels are unknown; use BayesClassifier(distributions, ...) when class labels y are provided.(n, d).predict, predict_proba, or predict_log_proba for component/class assignment probabilities.max_iter, tol, init, random_state, and verbose affect mixture fitting and initialization.BayesClassifier.fit requires y; GeneralMixtureModel.fit does not.GeneralMixtureModel, pomegranate initializes them with KMeans before EM.check_data or moving to mixed precision/compiled execution.