skdim.id.DANCo.fit

DANCo.fit(X, y=None)[source]

A reference implementation of a fitting function.

Parameters:
X : {array-like}, shape (n_samples, n_features)

A data set for which the intrinsic dimension is estimated.

y : dummy parameter to respect the sklearn API

Returns:

  • self (object) – Returns self.
  • self.dimension_ (int (or float if fractal is True)) – The estimated intrinsic dimension
  • self.kl_divergence (float) – The KL divergence between data and reference data for the estimated dimension (if ver == ‘DANCo’).
  • self.calibration_data (dict) – Calibration data that can be reused when applying DANCo to data sets of the same size with the same neighborhood parameter k.