Check error

The engine.
Post Reply
hylx
Posts: 10
Joined: Fri May 23, 2008 4:32 pm

Check error

Post by hylx »

Hi,

I am learning a dataset using PC algorithm, but I cannot get any model. I know there is a header file named "error.h", but how I can check what is the error that is , how to return the error information by calling what function besides ErrorH.RedirectToFile(stdout)?

Thanks.
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: Check error

Post by shooltz[BayesFusion] »

Can you post your source code?
hylx
Posts: 10
Joined: Fri May 23, 2008 4:32 pm

Post by hylx »

I attach the code. Thanks so much.
Attachments
pc learning.cpp
(5.75 KiB) Downloaded 531 times
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Post by shooltz[BayesFusion] »

Your code uses the obsolete version of SMILE. Currently, DSL_pc returns DSL_pattern (which, if it's a proper DAG, can be converted to DSL_network with a call to DSL_pattern::ToDAG).
Post Reply