Skip to content

[ENH] all_objects filter_tags to function with list-of tags#273

Merged
fkiraly merged 3 commits into
mainfrom
tag-filter-subset
Jan 31, 2024
Merged

[ENH] all_objects filter_tags to function with list-of tags#273
fkiraly merged 3 commits into
mainfrom
tag-filter-subset

Conversation

@fkiraly
Copy link
Copy Markdown
Contributor

@fkiraly fkiraly commented Jan 26, 2024

Currently, all_objects breaks if filter_tags is set and some tags in estimators are lists, as lists are unhashable.

This PR changes behaviour in the case of iterable tag value from raising an exception (unhashable list) to the condition that at least one search value is among the tag values.

Fixes first item in sktime/sktime#5755

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1568e11) 84.69% compared to head (6204f80) 84.71%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #273      +/-   ##
==========================================
+ Coverage   84.69%   84.71%   +0.01%     
==========================================
  Files          43       43              
  Lines        2928     2931       +3     
==========================================
+ Hits         2480     2483       +3     
  Misses        448      448              

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

@fkiraly fkiraly merged commit b17dfcc into main Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Adding new functionality implementing framework Implementing core skbase framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant