pyppur.objectives package¶
- class pyppur.objectives.BaseObjective(alpha: float = 1.0, **kwargs: Any)[source]
Bases:
ABCAbstract base class for projection pursuit objective functions.
- class pyppur.objectives.DistanceObjective(alpha: float = 1.0, weight_by_distance: bool = False, use_nonlinearity: bool = True, **kwargs: Any)[source]
Bases:
BaseObjectiveDistance distortion objective function for projection pursuit.
This objective minimizes the difference between pairwise distances in the original space and the projected space. Can optionally apply ridge function nonlinearity before distance computation.
- class pyppur.objectives.Objective(*values)[source]
-
Objective types for projection pursuit.
- DISTANCE_DISTORTION = 'distance_distortion'
- RECONSTRUCTION = 'reconstruction'
- class pyppur.objectives.ReconstructionObjective(alpha: float = 1.0, tied_weights: bool = True, l2_reg: float = 0.0, **kwargs: Any)[source]
Bases:
BaseObjectiveReconstruction loss objective function for projection pursuit.
This objective minimizes the reconstruction error when projecting and reconstructing data. Supports both tied-weights (encoder=decoder) and free decoder configurations.
Submodules¶
pyppur.objectives.base module¶
Base class for objective functions.
pyppur.objectives.distance module¶
Distance distortion objective for projection pursuit.
pyppur.objectives.reconstruction module¶
Reconstruction loss objective for projection pursuit.