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.
The application of the algorithm
-
- Site Admin
- Posts: 1417
- 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.
Re: The application of the algorithm
but if i want to use NaiveBayes,how to call it?
-
- Site Admin
- Posts: 1417
- 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.
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?
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?
-
- Site Admin
- Posts: 1417
- Joined: Mon Nov 26, 2007 5:51 pm
Re: The application of the algorithm
What exactly do you mean by 'here'? Algorithms available in SMILE and SMILearn?there are many inferece algorithms here
Re: The application of the algorithm
it is SMILE. i just want to use other algorithms,just try it.
-
- Site Admin
- Posts: 1417
- 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.