Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR includes bug fixes, refactorings, and improvements to the docstrings.
Changes
self.classestoself.labels. The classes attribute will now be maintained as a deprecated property, redirecting to labels and issuing a deprecation warning to ensure backward compatibility.cityblockandminkowskidistances, removing undue normalization by the number of dimensions.fitprocess, with improvements in internal organization and readability.