Menu

#2 Learning a BNet (testSL.cpp)

open
nobody
None
5
2004-07-23
2004-07-23
No

I'm trying to learn both structure and parameters of a
BNet from data. The testSL.cpp provides a perfect
example of this. So far, I've managed to learn
structure, but how do I extract a BNet from this?

To illustrate, consider testSL.cpp: towards the bottom
of main(), I've uncommented the following lines:

pLearn->CreateResultBNet(const_cast<CDAG*>(pLearn->GetResultDAG()));
const CBNet* pBNet = pLearn->GetResultBNet();

Running this results in an Abort (out of range exception?)

Is this a known bug, or undevelopped bit? Is there
another work around that I can use to extract my BNet
structure and produce a useable BNet?

Thanks,

Pete.

Discussion


Log in to post a comment.