Implement the naive gaussian Bayes estimator. The training must be done from scikit-learn.
The parameters can be easily generated from the scikit-learn object. Some examples are given in DSP/Testing/PatternGeneration/Bayes.py
◆ arm_gaussian_naive_bayes_predict_f16()
- Parameters
-
[in] | *S | points to a naive bayes instance structure |
[in] | *in | points to the elements of the input vector. |
[out] | *pOutputProbabilities | points to a buffer of length numberOfClasses containing estimated probabilities |
[out] | *pBufferB | points to a temporary buffer of length numberOfClasses |
- Returns
- The predicted class
◆ arm_gaussian_naive_bayes_predict_f32()
- Parameters
-
[in] | *S | points to a naive bayes instance structure |
[in] | *in | points to the elements of the input vector. |
[out] | *pOutputProbabilities | points to a buffer of length numberOfClasses containing estimated probabilities |
[out] | *pBufferB | points to a temporary buffer of length numberOfClasses |
- Returns
- The predicted class