Author Topic: EM Learning -throuth API  (Read 9747 times)

Offline nuaafk

  • Newbie
  • *
  • Posts: 4
    • View Profile
EM Learning -throuth API
« on: April 26, 2010, 13:54:39 »
Hi,
After learning about the structural learning through API, i have got interested in the C++ API .But ,i am not sure about how to use it in EM learning. Continued that topic "Structural Learning-through API", if the BBN's structure has been determined ,we want to get the conditional probability distribution with the help of a data file  next.And how to make it come true throuth C++ APIļ¼Ÿ
    would you mind reply with a sample code? ;D
    regards,
    a new student waiting for your answer

Offline Frank Jensen

  • HUGIN Expert
  • Hero Member
  • *****
  • Posts: 576
    • View Profile
Re: EM Learning -throuth API
« Reply #1 on: April 26, 2010, 17:20:06 »
The Hugin software distribution contains some test programs (located in the "test" directory).  You should check out "parameter_learning.c" and "ParameterLearning.cpp".  These programs show how to learn the CPTs of a Bayesian network, but note that the programs differ in some details (for instance in how experience tables are initialized).  I would recommend looking at the C program first as it contains more comments.

Offline nuaafk

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: EM Learning -throuth API
« Reply #2 on: April 27, 2010, 07:02:50 »
thank you for your reply ,i will go ahead with your suggestion!