Skip to main content

Module naive_bayes

Module naive_bayes 

Source
Expand description

Gaussian Naive Bayes (ISL ch 4.4.4) — a generative classifier assuming the features are conditionally independent Gaussians given the class. Fit per-class priors and per-feature mean/variance (reusing statistics::descriptive); classify by the argmax log-posterior. Kernel-class Reduction.

Structs§

GaussianNb
A fitted Gaussian naive-Bayes classifier.