coco_pipe.dim_reduction.reducers.base#

Base interfaces for dimensionality reduction backends.

This module defines the reducer contract shared by built-in reducers and user-defined reducers. A reducer is any object derived from ~coco_pipe.dim_reduction.reducers.base.BaseReducer implementing fit and transform , optionally exposing diagnostics and scalar quality metadata through helper methods.

The surrounding dim-reduction stack uses these interfaces to provide:

  • input validation through the reducer capabilities mapping

  • standardized persistence with save and load

  • reducer-aware reporting and visualization hooks

  • optional dependency loading through coco_pipe.utils.import_optional_dependency

Notes

~coco_pipe.dim_reduction.reducers.base.BaseReducer is the intended extension point for custom reducers. Third-party reducers can participate in ~coco_pipe.dim_reduction.DimReduction workflows without extra wrappers as long as they respect the method contract documented here.

Attributes#

Module Contents#

coco_pipe.dim_reduction.reducers.base.ArrayLike#