pysmile - learning

The engine.
Post Reply
Posts: 6
Joined: Thu Jun 08, 2017 10:24 am

pysmile - learning

Post by dvrebos » Thu Mar 29, 2018 9:27 am

I've been trying different learning algorithms in pysmile. But I have some questions regarding the available options.

Is Essential Graph Search incorporated in pysmile? I doesn't seem to be available.


While bayesian_search provides the option to set to a maximum run time "set_max_search_time". This option isn't available in "pc". Is there a way to limit the runtime of this search algorithm?

Site Admin
Posts: 1241
Joined: Mon Nov 26, 2007 5:51 pm

Re: pysmile - learning

Post by shooltz[BayesFusion] » Fri Mar 30, 2018 10:48 pm

Essential Search is not available in SMILE Wrappers. It's only accessible from C++ at this point.
It's the same with PC's max search time; it's a C++ only feature.

Posts: 6
Joined: Thu Jun 08, 2017 10:24 am

Re: pysmile - learning

Post by dvrebos » Tue Apr 03, 2018 1:03 pm

Thanks for the explenation.

I have an additional question regarding match_network() and validator(). I've been trying to test this using one of the older examples available:

with the data in a datafile: Net_tut_5.txt
  • A B C
    t t t
    t f f
    f t f
    f f f
    t t t
    t f t
    f t f
    f f t
When applying these data I use the following code

Code: Select all

import pysmile

# read dataset
Dataset = pysmile.learning.dataset()

# open BBN
Net =

# create data_match
Matched_List  = Dataset.match_network(Net)

# validate network
Validation = pysmile.learning.validator(Net,Dataset,Matched_List)
However I keep getting an error during the data_matching which is not clear to me.
ValueError: learning.dataset.match_network raised exception!
errno = -4
Do you have any idea what I do wrong?
Are there specific rules for the headers in the datafile and the node_ids in the network when using match_network() and validator()? Or can I use any word I would like?

piotr [BayesFusion]
Site Admin
Posts: 23
Joined: Mon Nov 06, 2017 6:41 pm

Re: pysmile - learning

Post by piotr [BayesFusion] » Tue Apr 03, 2018 2:15 pm

I'm assuming, that your Dataset isn't corresponding with Network.
Net_tut_5.xdsl has states named State0/State1 instead of t/f from Dataset.

Post Reply