pytreeclass

Visualize, create, and operate on pytrees in the most intuitive way possible.

APACHE-2.0 License

Downloads
2.6K
Stars
38
Committers
2

Bot releases are hidden (Show)

pytreeclass - 0.0.11

Published by ASEM000 about 2 years ago

What's Changed

Fully immutable support

Full Changelog: https://github.com/ASEM000/PyTreeClass/compare/0.0.9...0.0.11

pytreeclass - 0.0.11beta0

Published by ASEM000 about 2 years ago

What's Changed

  • treeclass is designated fully immutable.
  • add .at[] methods as described here #16

Full Changelog: https://github.com/ASEM000/PyTreeClass/compare/0.0.10rc0...0.0.11beta0

pytreeclass - 0.0.10rc0

Published by ASEM000 about 2 years ago

pytreeclass - 0.0.9post1

Published by ASEM000 about 2 years ago

What's Changed

Full Changelog: https://github.com/ASEM000/PyTreeClass/compare/0.0.9...0.0.9post1

pytreeclass - 0.0.9

Published by ASEM000 about 2 years ago

pytreeclass - 0.0.9rc1

Published by ASEM000 about 2 years ago

pytreeclass - 0.0.9rc0

Published by ASEM000 about 2 years ago

What's Changed

  • Fix freezing under jit
  • Add support for jitted .at[].set and .at[].apply
pytreeclass - v0.0.8

Published by ASEM000 about 2 years ago

What's Changed

pytreeclass - v0.0.7

Published by ASEM000 about 2 years ago

  • Fix summary for frozen nodes
  • refactor tree_indexer
pytreeclass - v0.0.6post2

Published by ASEM000 about 2 years ago

  • Fix .at[].apply()
pytreeclass - v0.0.6post1

Published by ASEM000 about 2 years ago

  • Add integer/slice indexing
pytreeclass - v0.0.6post

Published by ASEM000 about 2 years ago

  • Add .at[].add(), .at[].min(), .at[].max(), .at[].divide(), .at[].apply(), .at[].multiply(), .at[].power()
  • Attach summary(), tree_diagram(), tree_box() to the class instance
  • Add the ability to generate a link from tree_mermaid with link=True
  • Add more compact boilerplate through register_node #3
pytreeclass - v0.0.6

Published by ASEM000 about 2 years ago

[1] Add freeze/unfreeze methods on pytrees
[2] Add tree_viz.tree_mermaid/tree_viz.tree_mermaid_md/tree_viz.tree_mermaid_html to generate mermaid flow chart diagrams from treeclass #2
[3] Add tree_viz.summary_md to generate a marked down version of summary #2
[4] Add register_node to add tree nodes outside dataclass fields #3
[5] Optional declaration for @treeclass wrapped class in dataclass fields #4

pytreeclass - v0.0.5

Published by ASEM000 over 2 years ago

  • Add .at[].set() and .at[].get() on pytrees.
  • add op=True/False argument in @treeclass to enable/disable indexing and math operations.
  • ported cached property/singledispatchmethod to py3.7 for efficient implementation .
  • pretty print str
pytreeclass - v0.0.4

Published by ASEM000 over 2 years ago