Parameter manipulation in naive bayes classificator struct
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Shashank Prasanna
2014-8-12
编辑:Shashank Prasanna
2014-8-12
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Naive Bayes 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!