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!