v2.0.0rc1
Pre-release[2.0.0rc1] - 2025-06-02
This is the first release candidate of the version 2 of Leaspy.
There is no backward compatibility with the version 1 of Leaspy.
This means that the public API is different and that models serialized with the version 1 of Leaspy won't be compatible with version 2 and vice-versa.
Leaspy v2 introduces a whole new logic in the way model parameters and variables are handled, with the objective of being more modular than version 1 and ease the definition of new models.
The main idea behind the new model specification scheme lies in the concepts of State and DAG which are two core components of Leaspy v2:
- A
DAGis a directed acyclic graph defining the symbolic relationships between parameters, hyperparameter, and variables in a model. It is basically the blueprint of your model. - A
Stateis aDAGwith an additional mapping between node names and current values. AStatebasically holds the model's blueprint as well as the values that are currently loaded.
The fact that a model in Leaspy v2 is almost equivalent to its DAG makes it very easy for users to define a new model as relationships between variables are translated in a very transparent way.
The actual release of Leaspy v2.0.0 is an ongoing work that would benefit from user inputs. Please open issues if you had problems using this version of Leaspy or if you encountered bugs doing so.