Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testSprinklerDemo fails on Octave 3.8.0 OSX #89

Open
garyfeng opened this issue May 25, 2014 · 0 comments
Open

testSprinklerDemo fails on Octave 3.8.0 OSX #89

garyfeng opened this issue May 25, 2014 · 0 comments

Comments

@garyfeng
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant