Two things in the documentation of the generic non-2D addPairwiseEnergy:
The feature matrix needs to have shape (feature_dimensionality, npoints); the example previously had this transposed.
The feature dimensionality is not necessarily equal to nlabels; I changed it to 5 from 3, because it was confusing for me to have these equal by coincidence in the example.
Two things in the documentation of the generic non-2D
addPairwiseEnergy
:(feature_dimensionality, npoints)
; the example previously had this transposed.nlabels
; I changed it to 5 from 3, because it was confusing for me to have these equal by coincidence in the example.