The way I went about doing it is:
Build all 2 variable factors (that is 1-2 and 2-3 in the sample case)
Build all 1 variable factors (that is 1, 2 and 3 in the sample case)
Multiply the 1 variable Factors into the 2 variable ones (each factor only once).
I'm getting different values for my output than the sampleUncalibratedTree, probably because I'm not assigning values correctly (cardinalities / variables are correct).
The featureSet contains 3926 features. That is 676 * 2 for the assignments to [1 2] and [2 3], but also 2574 single variable features... that is 858 for each variable [1 …