Closed insperatum closed 9 years ago
Haha, this gotta be the most awesomely looking wolfe bug report so far. I will never address this just to leave it open!
Okay, the reason why this fails is because your model is essentially
sum(...)(t:T=>Int)).toDouble
instead of sum(...)(t:T=>Int).toDouble)
. You can temporarily fix this by writing
def space = seqsOfLength(5, (0 to 3) map (_.toDouble))
Also, model is now taking Seq[Double]
arguments.
Fixing this for good means automatically pushing down the toDouble
conversion into the sum which is a little more tedious than it looks.
The model below generates only a single factor of degree 5, rather than 4 factors of degree 2. Note that similar models over seqsOfLength(5, bools) will generate the correct factor graph.