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
sequence-modelsGuides pomegranate sequence workflows with MarkovChain, DenseHMM, and SparseHMM, including sequence shapes, variable-length batches, transition setup, Baum-Welch fitting, priors, posterior decoding, and Viterbi.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill for pomegranate sequence models: k-th order categorical MarkovChain, dense-transition DenseHMM, sparse-transition SparseHMM, sequence likelihood scoring, sequence sampling, hidden-state posterior decoding, Viterbi paths, variable-length sequence training, and prior-weighted/semi-supervised HMM learning.
Typical imports:
from pomegranate.distributions import Categorical, ConditionalCategorical, Exponential, Normal
from pomegranate.markov_chain import MarkovChain
from pomegranate.hmm import DenseHMM, SparseHMM
Read references/api-reference.md for constructors, sequence data shapes, dense/sparse edge formats, and examples. Run scripts/smoke_sequence_models.py to verify tiny MarkovChain, DenseHMM, and SparseHMM workflows.
MarkovChain for observed categorical sequences. Use DenseHMM when hidden state transitions are dense. Use SparseHMM when only a few state transitions are possible.(n, length, d). HMM fitting can also accept lists of sequences or grouped tensors for variable lengths.Normal, Exponential, or richer distributions.[start_distribution, end_distribution, probability] edge triples plus optional starts/ends.fit for Baum-Welch/EM, summarize/from_summaries for chunked updates, and log_probability for sequence likelihoods.predict, predict_proba, predict_log_proba, or viterbi depending on whether you need posterior marginals or a best path.(n, d) arrays to HMM scoring/fitting unless the method specifically documents that format.SparseHMM needs explicit nonzero edges; if every state connects to every state, use DenseHMM.sample_length or usable end probabilities.