Skip to content

Version 0.1.6

Choose a tag to compare

@chaoming0625 chaoming0625 released this 25 Dec 14:10
· 36 commits to main since this release
206c5ec

New Features

Parameter Management Expansion (braintools.param)

  • Hierarchical data container: Added Data for composed state storage and cloning.
  • Parameter wrappers: Added Param and Const with built-in transforms and optional regularization.
  • State containers: Added ArrayHidden and ArrayParam with transform-aware .data access.
  • Regularization priors: Added GaussianReg, L1Reg, and L2Reg with optional trainable hyperparameters.
  • Utilities: Added get_param() and get_size() helpers for parameter/state handling.

Transforms

  • New ReluT transform for lower-bounded parameters.
  • Expanded transform suite now includes PositiveT, NegativeT, ScaledSigmoidT, PowerT,
    OrderedT, SimplexT, and UnitVectorT.

Improvements

API Consistency

  • Transform naming cleanup: Standardized transform class names with the *T suffix
    (e.g., SigmoidT, SoftplusT, AffineT, ChainT, MaskedT, ClipT).

Documentation

  • Expanded param API docs: Added sections for data containers, state containers, regularization,
    utilities, and updated transform listings in docs/apis/param.rst.
  • API index update: Added param API page to docs/index.rst.

Tests

  • New test coverage: Added tests for data containers, modules, regularization, state, transforms,
    and utilities across the param module.

Breaking Changes

  • Transform API renames: Transform classes now use the *T suffix (e.g., Sigmoid -> SigmoidT).
  • Custom transform removed: The Custom transform is no longer part of the public API.

Bug Fixes

  • Initializer RNG: TruncatedNormal now defaults to numpy.random when no RNG is provided.

What's Changed

  • ⬆️ Bump actions/download-artifact from 6 to 7 by @dependabot[bot] in #66
  • ⬆️ Bump actions/upload-artifact from 5 to 6 by @dependabot[bot] in #65

Full Changelog: v0.1.5...v0.1.6