Creates a summary matrix of the means and standard devations for the data matrix split by classes and features. It also calcaulates the prior class probabilities.
1 | naive_bayes(X, y)
|
X |
data matrix which stores observations as rows and features as columns |
y |
column vector that stores each observation's class labels |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.