probml / pmtk3

Probabilistic Modeling Toolkit for Matlab/Octave.
MIT License
1.55k stars 797 forks source link

testPmtk3 fails in SetDefaultValue on Matlab R2015b. #125

Closed dcurley closed 7 years ago

dcurley commented 7 years ago

When running testPMtk3 on (Mac) Matlab R2015b I get the following failure:

>> testPmtk3
Checking initialization..........PASSED
Checking pmtkSupport packages....PASSED
Checking pmtkData................PASSED
Testing selected code............

 Iteration   FunEvals     Step Length    Function Val        Opt Cond
         1          2     3.06026e-01     6.00879e+00     3.76102e-01
         2          3     1.00000e+00     5.95831e+00     7.22403e-02
         3          4     1.00000e+00     5.95404e+00     2.24065e-02
         4          5     1.00000e+00     5.95362e+00     2.54132e-03
         5          6     1.00000e+00     5.95361e+00     2.11563e-04
         6          7     1.00000e+00     5.95361e+00     1.44970e-05
Directional Derivative below progTol
low =
   23.5706
high =
   28.8537
ans = 
  Axes (posterior samples) with properties:

             XLim: [0 1]
             YLim: [0 1]
           XScale: 'linear'
           YScale: 'linear'
    GridLineStyle: '-'
         Position: [0.1200 0.1000 0.7950 0.8350]
            Units: 'normalized'

  Show all properties
Error using evalin
Undefined function or variable 'nsamples'.
Error in SetDefaultValue (line 24)
      isempty(evalin('caller', argName))
Error in hmmSample (line 9)
SetDefaultValue(3, 'nsamples', 1);
Error in hmmDiscreteTest (line 26)
[observed, hidden] = hmmSample(trueModel, len);
Error in testPmtk3 (line 68)
hmmDiscreteTest;