pangeo_fish.hmm.filter.score

Contents

pangeo_fish.hmm.filter.score#

pangeo_fish.hmm.filter.score(emission, predictor, initial_probability, mask=None)#

Score of a single pass (forwards) of the spatial HMM filter

Parameters:
  • emission (array-like) – probability density function of the observations (emission probabilities)

  • predictor (Predictor) – Algorithm for predicting the next time step.

  • initial_probability (array-like) – The probability of the first hidden state

  • final_probability (array-like, optional) – The probability of the last hidden state

  • mask (array-like, optional) – A mask to apply after each step. No shadowing yet.

Returns:

score (float) – A measure of how well the model parameter fits the data.