pyxpcm.models.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_axislevels of the model - scaling
- reduction
- interpolation to the
- 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 usingxarray.DataArrayattributes ‘feature_name’.- dim: str
Name of the vertical dimension in the input
xarray.Dataset
Returns: - self