coco_pipe.dim_reduction.reducers.base ===================================== .. py:module:: coco_pipe.dim_reduction.reducers.base .. autoapi-nested-parse:: 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` .. rubric:: 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 ---------- .. autoapisummary:: coco_pipe.dim_reduction.reducers.base.ArrayLike Module Contents --------------- .. py:data:: ArrayLike