Skip to content

v2.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 18 Nov 15:30
9237c71

nnodely 2.0.0

nnodely 2.0 is a rewrite of the library on Keras 3: the same model runs on TensorFlow, PyTorch or JAX.

This release breaks compatibility with 1.x. The migration table maps every 1.x call to 2.0. To stay on 1.x, pin pip install "nnodely<2".

pip install "nnodely[torch]"        # or [tensorflow], or [jax]

What's new

  • Modely: a model declared by its inputs and outputs, usable as a block of another model.
  • One shape for every stream, (batch, *seq, tw, *dim), and stream operators + - * / ** %.
  • Trainable Parameters for every weight, shared, initialized and frozen by name.
  • Recurrent models: Input.feedback(), model.loop(), Loop, Buffer and hidden states.
  • Physics blocks: Gradient, Derivative, Integrate and Ode (Euler, midpoint, Heun, RK4).
  • Layers:
    • structured: Fir, Linear, Fuzzify, LocalModel, Interpolation, EquationLearner, BatchNorm and KerasFunction for any Keras layer;
    • windows and sequences: Select, Range, Concatenate, and their Time* and Seq* counterparts.
  • DataLoader for dicts, DataFrames and CSV files, with simulations of different lengths.
  • Training and validation: any Keras loss and optimizer, early stopping, and system-identification metrics with plots.
  • Save and export: save/load, Keras, ONNX on every backend, and an interactive HTML graph.

Full changelog: v1.5.4...v2.0.0