Essential search and PC

The engine.
Post Reply
thom
Posts: 5
Joined: Thu Sep 24, 2009 7:39 am

Essential search and PC

Post by thom »

Hi,

I'm writing a small program using the SIMLE library. I constructed a network for my data using Greedy Think Thinning. This works fine.

However, Essential search is somehow not included in smilelearn.h?
Because when I declare the learner:

Code: Select all

DSL_essentialSearch egs;
Visual studio tells me: "'DSL_essentialSearch' : undeclared identifier".
Also, inculding essentialsearch.h manually gives linking errors. So how am I supposed to use this structure learner?

Then a question about the PC algirithm. In pc.h I see the header for Learn():

Code: Select all

int Learn(const DSL_dataset &ds, DSL_pattern &pat, DSL_learnProgress *progress = NULL) const;
What is a DSL_pattern and how do I get the resulting network after calling this function? The documentation for PC on the wiki states that the second parameter of this Learn-method is a network instead of a pattern (which would make more sense to me).

Thanks for the help!

-Thom
shooltz[BayesFusion]
Site Admin
Posts: 1461
Joined: Mon Nov 26, 2007 5:51 pm

Re: Essential search and PC

Post by shooltz[BayesFusion] »

thom wrote:Also, inculding essentialsearch.h manually gives linking errors. So how am I supposed to use this structure learner?
Thanks for reporting the problem. The issue is caused by invalid project settings for VC6/8/9 - the essentialsearch.cxx is omitted from the project and the code is simply not compiled into the library.

This will be fixed in the upcoming SMILE release.

What is a DSL_pattern and how do I get the resulting network after calling this function? The documentation for PC on the wiki states that the second parameter of this Learn-method is a network instead of a pattern (which would make more sense to me).
DSL_pattern represents the graph learned by PC. It's not necessarily a DAG, so structure other than DSL_network must be used for representation. You can use DSL_pattern::ToDAG to convert it into DSL_network.
thom
Posts: 5
Joined: Thu Sep 24, 2009 7:39 am

Post by thom »

OK Thanks! When is the next release expected?
shooltz[BayesFusion]
Site Admin
Posts: 1461
Joined: Mon Nov 26, 2007 5:51 pm

Post by shooltz[BayesFusion] »

thom wrote:OK Thanks! When is the next release expected?
The plan was to release this week, but we have new learning algorithm (DBC) almost finished, so it was postponed to make sure DBC is included.

New binaries should be available before the end of September.
Post Reply