The application of the algorithm

The engine.
Post Reply
Gary
Posts: 40
Joined: Thu Nov 17, 2016 2:38 am

The application of the algorithm

Post by Gary » Wed Feb 22, 2017 7:57 am

hello,How to call the algorithm in the process?
like this: // use clustering algorithm
theNet.SetDefaultBNAlgorithm(DSL_ALG_BN_LAURITZEN);
I would like to know how to use other algorithms.

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

Re: The application of the algorithm

Post by shooltz[BayesFusion] » Wed Feb 22, 2017 4:07 pm

DSL_network::SetDefaultBNAlgorithm selects the inference algorithm, which will be used by DSL_network::UpdateBeliefs. UpdateBeliefs is the method to call if you want to run the inference algorithm.

Gary
Posts: 40
Joined: Thu Nov 17, 2016 2:38 am

Re: The application of the algorithm

Post by Gary » Thu Feb 23, 2017 6:42 am

but if i want to use NaiveBayes,how to call it?

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

Re: The application of the algorithm

Post by shooltz[BayesFusion] » Thu Feb 23, 2017 9:07 pm

Naive Bayes is a learning algorithm. See the "Learning Naive Bayes" tutorial in SMILearn documentation.

Gary
Posts: 40
Joined: Thu Nov 17, 2016 2:38 am

Re: The application of the algorithm

Post by Gary » Fri Feb 24, 2017 1:42 am

That was not what I meant
I mean,there are many inferece algorithms here,if i want to call them ,what should i do, i mean ,en, how to write it?

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

Re: The application of the algorithm

Post by shooltz[BayesFusion] » Fri Feb 24, 2017 2:39 pm

there are many inferece algorithms here
What exactly do you mean by 'here'? Algorithms available in SMILE and SMILearn?

Gary
Posts: 40
Joined: Thu Nov 17, 2016 2:38 am

Re: The application of the algorithm

Post by Gary » Mon Mar 06, 2017 1:51 pm

it is SMILE. i just want to use other algorithms,just try it.

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

Re: The application of the algorithm

Post by shooltz[BayesFusion] » Mon Mar 06, 2017 8:09 pm

You need to pass the algorithm identifier to DSL_network::SetDefaultBNAlgorithm before you call DSL_network::UpdateBeliefs. For a list of available algorithm identifiers, see the DSL_network::SetDefaultBNAlgorithm in reference section of the SMILE manual.

Post Reply