I am wondering on how to support 10.A.1 on a range of data representations, managed by a dispatch system, for a library of operations (product, marginalization, maximization, reduction, …)
I don’t want the data type scattered into functions and having to dance around DataFrames’ pooling. 10.A.1 has enough behaviors to warrant a data type of its own. As Koller says, indexing the appropriate entries in each factor is a key design decision.
However this is my first attempt at this, hence my post here.