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!