pmtk3
pmtk3 copied to clipboard
testSprinklerDemo fails on Octave 3.8.0 OSX
Running runDemos.m
after a new installation (Octave 3.8.0 on OSX 10.9.2, pmtk3 latest stable), which stopped with the following error message:
error: assert (tfequal (marginals, tfMarginals)) failed
error: called from:
error: /usr/local/octave/3.8.0/share/octave/3.8.0/m/testfun/assert.m at line 78, column 9
error: /Users/garyfeng/Downloads/pmtk3-master/demos/testSprinklerDemo.m at line 58, column 1
error: /Users/garyfeng/Downloads/pmtk3-master/testPmtk3.m at line 66, column 1
Here are the values of marginals
:
>> marginals
marginals =
{
[1,1] =
scalar structure containing the fields:
T =
0.25510
0.74490
domain = 1
sizes = 2
[2,1] =
scalar structure containing the fields:
T =
0.87143
0.12857
domain = 2
sizes = 2
[3,1] =
scalar structure containing the fields:
T =
0.26264
0.73736
domain = 3
sizes = 2
[4,1] =
scalar structure containing the fields:
T =
0.30250
0.69750
domain = 4
sizes = 2
}
And tfMarginals
:
>> tfMarginals
tfMarginals =
{
[1,1] =
scalar structure containing the fields:
T =
0.50000
0.50000
domain = 1
sizes = 2
[2,1] =
scalar structure containing the fields:
T =
0.70000
0.30000
domain = 2
sizes = 2
[3,1] =
scalar structure containing the fields:
T =
0.50000
0.50000
domain = 3
sizes = 2
[4,1] =
scalar structure containing the fields:
T =
0.35290
0.64710
domain = 4
sizes = 2
}
They are indeed not equal.
PS: all other demos in runDemos.m
seem to work.