pyxpcm.pcm.fit

pcm.fit(self, ds, features=None, dim=None)[source]

Estimate PCM parameters

For a PCM, the fit method consists in the following operations:

  • pre-processing
    • interpolation to the feature_axis levels of the model
    • scaling
    • reduction
  • estimate classifier parameters
Parameters:
ds: :class:`xarray.Dataset`

The dataset to work with

features: dict()

Definitions of PCM features in the input xarray.Dataset. If not specified or set to None, features are identified using xarray.DataArray attributes ‘feature_name’.

dim: str

Name of the vertical dimension in the input xarray.Dataset

Returns:
self