PyGlove v0.4.0
New Features
-
pg.symbolic -
pg.object_utils- Introduce
pg.docstrfor DocStr inspection. ([29f02ad](https://github.com/google/pyglove/commit/
29f02ad))
- Introduce
-
pg.mutfun
Enhancements
-
pg.symbolic-
Major: Introduce symbolic member declaration via field annotations, which replaces
pg.membersas the recommended way for symbolic field declaration (27a7392, 564cb1b) -
Major: Introduce
auto_typingforpg.symbolizeandpg.functor. (5b57191) -
Introduce context manager
pg.auto_call_functors, which allows functor invocation right after init. This makes functors compatible with regular functions. (a00e787) -
Introduce
auto_docargument forpg.symbolze. (e8b2520) -
Support
python_formatargument forpg.Symbolic.format. (c3005c06) -
pg.Objectto allow member methods to work as the default value for callable symbolic attributes. (9b2bd3b) -
Add
pg.Object._begin_annotation_inferenceandpg.Object._end_annotation_inferenceas events for intercepting annotation inference during class creation. (af410fe)
-
-
pg.typing- Major:
pg.typing.Objectto support forward declaration. (9235f55)
- Major:
-
pg.object_utils
Bug Fixes
-
pg.typing -
pg.symbolic -
pg.ext.evolution- Fix
pg.evolution.mutators.Uniformfor misaligned subchoice DNASpec after sorting the subchoices. (c4ad652)
- Fix
-
pg.ext.early_stopping- Fix gating index matching logic in
pg.early_stopping.StepWise. (a5e0532)
- Fix gating index matching logic in
Code Improvement
pg.symbolic
Removed APIs
- Removed
pg.generatorsnamespace. (ac40ae5)