Author Topic: N/A for missing value causes error in EM learning example  (Read 11414 times)

Offline mbedward

  • Newbie
  • *
  • Posts: 7
    • View Profile
N/A for missing value causes error in EM learning example
« on: February 27, 2014, 01:14:20 »
A beginner question. Searched the forum and FAQ but didn't find an answer...

Working through tutorial for EM learning with the asia dataset I get the error "The state range of the node is insufficient for the chosen standard distribution". Editing asia.dat to replace the "N/A" values with empty strings fixes the problem.

The manual and online examples refer to "N/A" - is this now deprecated ?

I'm using Hugin 7.7 on Windows 7.



Offline Martin

  • HUGIN Expert
  • Hero Member
  • *****
  • Posts: 613
    • View Profile
Re: N/A for missing value causes error in EM learning example
« Reply #1 on: March 04, 2014, 16:15:39 »
As you found out, the error means that the value in the case cannot be matched to a state on the node.

Yes we now use an empty value to indicate missing data - it seems some of the tutorials needs to be updated, sorry.

In addition to manually editing the file, one can also replace N/A with the empty value by right-click a column header in the data frame and select replace values.
Hugin Expert A/S

Offline mbedward

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: N/A for missing value causes error in EM learning example
« Reply #2 on: March 05, 2014, 05:23:43 »
Thanks for the right-click tip Martin. I'm sure that will come in handy.

Michael