Skip to content

v0.5.3#52

Merged
Joao-Paulo-Silva merged 4 commits intomainfrom
develop
Feb 17, 2026
Merged

v0.5.3#52
Joao-Paulo-Silva merged 4 commits intomainfrom
develop

Conversation

@Joao-Paulo-Silva
Copy link
Member

@Joao-Paulo-Silva Joao-Paulo-Silva commented Feb 1, 2026

Description

This PR includes bug fixes, refactorings, and improvements to the docstrings.

Changes

  • Renaming of the attribute used by the clustering algorithms from self.classes to self.labels. The classes attribute will now be maintained as a deprecated property, redirecting to labels and issuing a deprecation warning to ensure backward compatibility.
  • Correction of inconsistencies in metrics to maintain compatibility with SciPy. Adjustment to the implementations of cityblock and minkowski distances, removing undue normalization by the number of dimensions.
  • Structural refactoring of the AIRS fit process, with improvements in internal organization and readability.
  • Inclusion of additional data range validations in RNSA to increase robustness.
  • Revision and standardization of docstrings, with the addition of executable examples in doctest format to facilitate understanding and use.

This PR renames the attribute used by clustering algorithms from self.classes to self.labels. The classes attribute is kept as a deprecated property that redirects to labels and emits a deprecation warning.
## Description
This PR refines the docstrings for the package's functions and classes, standardizing them and including usage examples (doctests) to facilitate maintenance.

## Changes

- Revision of docstrings in functions and classes.
- Inclusion of usage examples in docstrings for the main classes.
… normalization. (#55)

The `aisp.utils.distance` module implements **cityblock** and **minkowski** with normalization, dividing the result by the number of dimensions **n**. aisp also uses `scipy.spatial.distance.cdist`, and SciPy follows the classic mathematical definition of metrics, returning cumulative distances without dimension-specific normalization.
This difference creates an inconsistency that can cause problems in models generated with these distances.
Structural refactoring of AIRS Fit to improve code organization and readability. Implementation of data validation for RNSA and updating of docstrings.
@Joao-Paulo-Silva Joao-Paulo-Silva self-assigned this Feb 17, 2026
@Joao-Paulo-Silva Joao-Paulo-Silva added bug Something isn't working documentation Improvements or additions to documentation refactor Change without altering behavior. labels Feb 17, 2026
@Joao-Paulo-Silva Joao-Paulo-Silva marked this pull request as ready for review February 17, 2026 14:30
@Joao-Paulo-Silva Joao-Paulo-Silva merged commit 863a609 into main Feb 17, 2026
4 checks passed
@Joao-Paulo-Silva Joao-Paulo-Silva deleted the develop branch February 17, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation refactor Change without altering behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant