nb.hpp File Reference

Weighted Naive Bayes. More...

#include <vector>
#include "utils.hpp"
Include dependency graph for nb.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using target::raggedArray = std::vector< arma::vec >
 

Functions

raggedArray target::pcond (const arma::uvec &idx, const arma::mat &x, const arma::uvec &xlev, const arma::vec &weights, double laplacesmooth)
 
std::vector< raggedArray > target::nb (arma::vec y, arma::mat x, arma::uvec xlev=arma::uvec(), arma::vec ylev=arma::vec(), arma::vec weights=arma::vec(), double laplacesmooth=1.0)
 
arma::mat target::prednb (const arma::mat &X, const raggedArray &condprob, raggedArray xord, arma::uvec multinomial, arma::vec prior=arma::vec(), double threshold=1E-3)
 

Detailed Description

Weighted Naive Bayes.

Author
Klaus K. Holst

Definition in file nb.hpp.