Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: extend caching and review Surrogates API #236

Merged
merged 1 commit into from
Sep 10, 2024
Merged

Conversation

fkuehlein
Copy link
Collaborator

@fkuehlein fkuehlein commented Aug 13, 2024

Commit message

Extend caching according to 93ab748 to

  • RecurrenceNetwork and child classes
  • Surrogates

Review API of Surrogates to enable caching and reduce redundancy

  • remove unhashable argument original_data in surrogate methods, use respective attribute
  • make embedding a property as in RecurrencePlot
  • substitute static method normalize_time_series_array() with regular method normalize_original_data() with same functionality
  • make recurrence_plot() a static method (missing in commit message)
  • add attributes self.N, self.n_time
  • adapt tests, implement additional tests

Resolve and re-enable pylint flag no-member

Comment

The changed API of the Surrogates class should be reviewed. Also, what is Surrogates.recurrence_plot() intended for when we have the RecurrencePlot class?

Extend caching according to 93ab748 to
- `RecurrenceNetwork` and child classes
- `Surrogates`

Review API of `Surrogates` to enable caching and reduce redundancy
- remove unhashable argument `original_data` in surrogate methods,
  use respective attribute
- make embedding a property as in `RecurrencePlot`
- substitute static method `normalize_time_series_array()`
  with regular method `normalize_original_data()` with same functionality
- add attributes `self.N`, `self.n_time`
- adapt tests, implement additional tests

Resolve and re-enable pylint flag `no-member`
Copy link

codecov bot commented Aug 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.03%. Comparing base (a53b987) to head (01b71c9).
Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #236      +/-   ##
==========================================
+ Coverage   68.71%   70.03%   +1.31%     
==========================================
  Files          44       44              
  Lines        6138     6124      -14     
==========================================
+ Hits         4218     4289      +71     
+ Misses       1920     1835      -85     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant