Class SequenceGibbsSampler

A Gibbs sampler for sequence models. Given a sequence model implementing the SequenceModel
interface, this class is capable of
sampling sequences from the distribution over sequences that it defines. It can also use
this sampling procedure to find the best sequence.

collectSamples

Collects numSamples samples of sequences, from the distribution over sequences defined
by the sequence model passed on construction.
All samples collected are sampleInterval samples apart, in an attempt to reduce
autocorrelation.

Returns:

a List containing the sequence samples, as arrays of type int, and their scores

collectSamples

Collects numSamples samples of sequences, from the distribution over sequences defined
by the sequence model passed on construction.
All samples collected are sampleInterval samples apart, in an attempt to reduce
autocorrelation.

Returns:

a Counter containing the sequence samples, as arrays of type int, and their scores