## The application of the algorithm

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

### The application of the algorithm

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: 1310
Joined: Mon Nov 26, 2007 5:51 pm

### Re: The application of the algorithm

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

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

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

### Re: The application of the algorithm

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

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: 1310
Joined: Mon Nov 26, 2007 5:51 pm

### Re: The application of the algorithm

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

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

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

### Re: The application of the algorithm

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.