MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / ClassStatistics

Class ClassStatistics

src/machine_learning/naive_bayes.rs:7–12  ·  view source on GitHub ↗

Naive Bayes classifier for classification tasks. This implementation uses Gaussian Naive Bayes, which assumes that features follow a normal (Gaussian) distribution. The algorithm calculates class priors and feature statistics (mean and variance) for each class, then uses Bayes' theorem to predict class probabilities.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected