pmtk3 icon indicating copy to clipboard operation
pmtk3 copied to clipboard

Isolated word classification demo fails under Octave

Open ido opened this issue 11 years ago • 0 comments

From [email protected] on August 10, 2011 14:19:46

What steps will reproduce the problem? 1. > initPmtk3Octave 2. > isolatedWordClassificationWithHmmsDemo 3. /several errors occur/ What is the expected output? What do you see instead? Output should match that shown in the tutorial. Three separate errors -- two apparently related to Octave/Matlab compatibility issues and one typo -- prevent the demo from running to completion.

What version / revision of the product are you using? On what operating system?

I'm using a copy off trunk at http://pmtk3.googlecode.com/svn/trunk with Octave 3.2.3 on Ubuntu 10.04.3 LTS. Please provide any additional information below. The errors are:

  • toolbox/LatentVariableModels/hmm/sub/hmmFitEm.m: Replace tilde (~) used to ignore output parameter.
  • toolbox/Algorithms/optimization/emAlgo.m: Delete extra '.' causing syntax error.
  • demos/isolatedWordClassificationWithHmmsDemo.m: Replaced call to display() with disp().

The first fix is a known issue: http://code.google.com/p/pmtk3/issues/detail?id=26 The third fix may not be the right thing to do. Octave /has/ a display() function, and I can't imagine why it can't handle basic types. I can demonstrate the error by entering

octave:3> d=3.14 d = 3.1400 octave:4> display(d) error: display: not defined for class "double" error: called from: error: /usr/share/octave/3.2.3/m/general/display.m at line 36, column 3

Attachment: asr.diff

Original issue: http://code.google.com/p/pmtk3/issues/detail?id=31

ido avatar Jan 04 '14 01:01 ido