This PR is an attempt to better integrate with the Chainrules eco-system.
rewrite all natural compositions as a Chain
define frule and rrule for each such component
Then, the differentiation of bases will be achieved via frules and the differentiation of models via rrules.
Still open design decision: what kind of object is the product 1p basis, and how does it integrate into this framework.
This PR is an attempt to better integrate with the Chainrules eco-system.
frule
andrrule
for each such component Then, the differentiation of bases will be achieved via frules and the differentiation of models via rrules.Still open design decision: what kind of object is the product 1p basis, and how does it integrate into this framework.