Parameter manipulation in naive bayes classificator struct
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Thomas
le 12 Août 2014
Modifié(e) : Shashank Prasanna
le 12 Août 2014
Is it possible to manipulate the parameter of a naive bayes structure createt by NaiveBayes.fit()? I've tried, but it didn't work:
EDU>> cls.prior = [0.5 0.5]
Error using NaiveBayes/subsasgn (line 9)
The NaiveBayes class does not support subscripted assignments.
0 commentaires
Réponse acceptée
Shashank Prasanna
le 12 Août 2014
Modifié(e) : Shashank Prasanna
le 12 Août 2014
You can change the prior before the model is fit. If you want to specify different prior, you can do that while calling NaiveBayes.fit or fitNaiveBayes function using the name value pairs:
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Naive Bayes dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!