pangeo_fish.hmm.estimator.EagerEstimator.score

pangeo_fish.hmm.estimator.EagerEstimator.score#

EagerEstimator.score(X, *, spatial_dims=None, temporal_dims=None)#

Score the fit of the selected model to the data

Apply the forward-backward algorithm to the given data, then return the negative logarithm of the normalization factors.

Parameters:
  • X (xarray.Dataset) – The emission probability maps. The dataset should contain these variables:

    • pdf, the emission probabilities

    • mask, a mask to select ocean pixels

    • initial, the initial probability map

  • spatial_dims (list of hashable, optional) – The spatial dimensions of the dataset.

  • temporal_dims (list of hashable, optional) – The temporal dimensions of the dataset.

Returns:

score (float) – The score for the fit with the current parameters.