Commit Graph

8 Commits (7156604eba7350bb6c43f29d0fb2ee336f8d9dff)

Author SHA1 Message Date
plyfager 1a57a76be5 complete repr functions 2022-07-19 19:18:16 +08:00
liyining 59eaefebe0 [Feature] Support partial mapping by manually marking keys as ignored 2022-07-19 19:18:16 +08:00
gongtao.vendor 3b494a1304 Support broadcasting all keys for TransformBroadcaster 2022-07-19 19:18:16 +08:00
Yining Li f59aec8ffb [Feature] Add decorator `avoid_cache_randomness` (#1864)
* add prohibit_cache_randomness

* rename as avoid_cache_randomness and ensure it is non-inheritable

* fix lint

* update docs
2022-07-19 19:18:16 +08:00
Yining Li ff0dfb74d7 add RandomApply (#1863) 2022-07-19 19:18:16 +08:00
Yining Li e2ca0733c6 Refactor base transform (#1830)
* rename cacheable_method to cache_randomness

* refactor transform wrappers and update docs

* fix all_nonexist_keys

* fix lint

* rename transform wrappers
2022-07-19 19:18:16 +08:00
Yining Li 6534efd6ca [Fix] Add @cacheable_method in transform wrapper `RandomChoice` (#1807)
* add @cacheable_methd in RandomChoice

* RandomChoice add __iter__() and fix unittest
2022-07-19 19:18:16 +08:00
liukuikun 9e4b2ff58e [Feature] Add Part1 of data transform (#1736)
* [Feature] Add Part1 of data transform

* api.rst transform->transforms

* fix typo

* fix typo

* rename test_processing into test_transforms_processing for avoiding same name

* fix mypy

* fix comment

* fix comment
2022-07-19 19:18:15 +08:00