# Changeset 1200 for trunk/yat/classifier/NBC.h

Ignore:
Timestamp:
Mar 5, 2008, 3:30:58 AM (14 years ago)
Message:

working on #75

File:
1 edited

### Legend:

Unmodified
 r1184 /// /// \brief Train the %classifier using training data and targets. /// \brief Train the NBC using training data and targets. /// /// For each class mean and variance are estimated for each /// /// \brief Train the %classifier using weighted training data and /// \brief Train the NBC using weighted training data and /// targets. /// \f$P_j = \frac{1}{Z} \exp\left(-N\frac{\sum {w_i(x_i-\mu_i)^2}/(2\sigma_i^2)}{\sum w_i}\right)\f$, where \f$\mu_i \f$ and \f$\sigma_i^2 \f$ are the estimated mean and variance, respectively. Z is chosen such that total probability equals unity, \f$\sum P_j = 1 \f$. {w_i(x_i-\mu_i)^2}/(2\sigma_i^2)}{\sum w_i}\right) \prod_i\frac{1}{\sqrt{2\pi\sigma_i^2}}\f$, where \f$ \mu_i \f$and \f$ \sigma_i^2 \f$are the estimated mean and variance, respectively. Z is chosen such that total probability equals unity, \f$ \sum P_j = 1 \f\$. \note If parameters could not be estimated during training, due