0.2.0 (2025-10-13)
Ninth release: Easier preset options and structured API.
Features:
- Added typed
LayeredOptionsandGraphOptionsdataclasses with preset arguments forlayered_viewandgraph_view - Added presets for
text_callablefor common use cases with regards to captions under layers - Extended
layered_viewandgraph_viewto acceptoptions=andpreset=keyword arguments so that the new dataclasses can be used without breaking backwards compatibility. - We now raise
RuntimeErrorfor unsupported model structures to avoid confusing tracebacks. - Created a
.help()docstring on the initialization file to allow easier understanding on certain IDEs.
Developer changes:
- Re-exported options and preset defaults from the package root to make the structured API easy to import.
- Added
get_layersto simplify extracting layers from a Keras/TF model. - Added significant amount of docstrings throughout the codebase
- Add slight clarifications around formatting for CONTRIBUTING.md
- Misc. improvements to README.md
In this update, we upgrade to a brand new MINOR version as specified in Semantic Versioning: https://semver.org/. visualkeras follows Semantic Versioning loosely. We will usually follow their versioning guidelines except for cases in which very small pieces of functionality are added which we feel are not enough to warrant an entire new MINOR version (e.g., visualkeras v0.1.5).