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

simplify the masking API. #12

Merged
merged 4 commits into from
Jan 25, 2024
Merged

simplify the masking API. #12

merged 4 commits into from
Jan 25, 2024

Conversation

ASEM000
Copy link
Owner

@ASEM000 ASEM000 commented Jan 25, 2024

  • remove freeze/unfreeze
  • rename is_frozen to is_masked.
  • restrict the cond in tree_mask to callable only

- remove freeze/unfreeze
- rename is_frozen to is_masked.
- restrict the cond in tree_mask to callable only
@codecov-commenter
Copy link

codecov-commenter commented Jan 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d85c417) 94.47% compared to head (631c0c1) 94.42%.

Additional details and impacted files
@@            Coverage Diff             @@
##             next      #12      +/-   ##
==========================================
- Coverage   94.47%   94.42%   -0.05%     
==========================================
  Files          13       13              
  Lines        2334     2333       -1     
==========================================
- Hits         2205     2203       -2     
- Misses        129      130       +1     

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

@ASEM000 ASEM000 merged commit cd7b4e3 into next Jan 25, 2024
37 checks passed
@ASEM000 ASEM000 deleted the simplify-masking-api branch January 25, 2024 18:46
ASEM000 added a commit that referenced this pull request Mar 30, 2024
* Shard info (#10)

* add shard info in `tree_summary` for jax arrays (if exists)

* add export xla flag in jax ci

* shorter syntax

* Update test_pprint.py

* Simplify tree pprint (#11)

* Update CHANGELOG.md

* remove tree_mermaid tree_graph

* simplify the masking API. (#12)

* simplify the masking API.

- remove freeze/unfreeze
- rename is_frozen to is_masked.
- restrict the cond in tree_mask to callable only

* fix failing tests

* remove partial is_tree_equal from public API

* Update CHANGELOG.md

* add __format__

* Update CHANGELOG.md

* tree mask edits

* add broadcast_to to bcmap (#13)

* Remove distinction between regex and string match key (#14)

* changelog edit

* revert `__format__`

* [AtIndexer] make string key points to regex by default, remove BaseKey

* tree_*** -> ***

* print tracer type in tree repr/str

* fix `is_leaf` typing

* revert #14 plus some mods

- in favor of more explicit
- fails if dicts haves keys similar to re.Pattern

* remove __format__

* Add `fill_value` for `at[...].get(fill_value=...)`

* bump version

* changelog

* Add `jax.tree_util.{SequenceKey,GetAttrKey,DictKey}` as valid path keys in `at[...]`.

* define arraylib.array_equal

* fix numpy test failing

* AtIndexer -> at

* tuple -> tuple[type1, ... typen] in tree_summary type row

* add def_rule for at indexer

* remove is_nondiff

* docs organization

* list tree summary pp rule

* Update tree_mask.py

* nits

* fix at docstring

* fix no leaf match error

* fix doctest errors

* docs

* nits

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

Successfully merging this pull request may close these issues.

2 participants