New methods of entropy analysis have been added: shannon, bubble, con…#55
Open
Wenderlog wants to merge 23 commits intoPySATL:mainfrom
Open
New methods of entropy analysis have been added: shannon, bubble, con…#55Wenderlog wants to merge 23 commits intoPySATL:mainfrom
Wenderlog wants to merge 23 commits intoPySATL:mainfrom
Conversation
4b5a5a6 to
fa3fb7f
Compare
… dispersion, approximate, sample, slope with tests
fa3fb7f to
e1528cd
Compare
…nyi, Sample, Slope, Tsallis; add __init__.py
This commit introduces: - Vectorized implementation of phi calculation using numpy stride_tricks. - Fix for infinite recursion in _calculate_phi. - Fix for localize() method returning bool instead of an exact index. - Clean up of unused distance metrics.
…ment methods This commit introduces: - Vectorized permutation entropy calculation using numpy stride_tricks. - Added `get_entropy_history` method to retrieve past entropy values. - Added `reset` method to clear internal buffers and state.
This commit introduces: - Optimized array slicing and pre-checks for streaming performance. - Added `get_entropy_history` and `reset` methods for state management. - Fixed type hint mismatch and resolved magic number linting issues.
This commit introduces: - Vectorized dispersion pattern extraction using numpy stride_tricks. - Resolved ruff linting issues (removed unused variables, applied SIM108 to normalize entropy). - Maintained all original docstrings and test compatibility.
This commit introduces: - Vectorized KL Divergence calculations using numpy. - Optimization of KDE processing. - Resolved ruff linting issues (updated type hints, removed magic numbers). - Kept all original docstrings unchanged.
This commit introduces: - Vectorized Chebyshev distance calculations using numpy stride_tricks for fast pattern matching. - Added fast anomaly pre-check in the observation pipeline.
This commit updates the test_shannon_entropy_algorithm.py to match the updated algorithm signature, adding 'anomaly_threshold' and 'std_threshold' to the constructor calls to ensure test compatibility.
…g issues This commit introduces: - Vectorized moving average and standard deviation anomaly pre-checks using numpy. - Added reset() method for explicit state management.
…issues This commit introduces: - Vectorized slope pattern extraction using numpy stride_tricks for significant performance gains. - Migrated internal state buffers from lists to fixed-size deques to prevent memory leaks and ensure O(1) operations.
This commit: - Fixes type parameters for numpy arrays in entropy modules. - Explicitly casts numpy scalars to native types. - Applies ruff formatting to fix line length issues (E501) caused by long type hints.
Mypy does not allow using parameterized generics like npt.NDArray in runtime checks. Replaced them with np.ndarray to fix [misc] errors.
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.
…dition, permutation, renyi, tsallis, KLD, dispersion, approximate, sample, slope. Tests have been developed and added to them.