jubatus/jubatus_core — pull request #47 by hido (2014-08-21 08:25:58+00:00)
Title: Fix equations in classifier/NHERD update

This PR fixes [#816](https://github.com/jubatus/jubatus/issues/816).
NHERD update equations were wrong. It must have ``variance`` in the dominators instead of ``val_covariance_xxx`` in [L89](https://github.com/jubatus/jubatus_core/blob/master/jubatus/core/classifier/normal_herd.cpp#L89) and [L100](https://github.com/jubatus/jubatus_core/blob/master/jubatus/core/classifier/normal_herd.cpp#L100).
It also appends hinge loss function ``std::max(0.f, 1.f - margin)`` as in the original paper for safety.
For large ``regularization-weight`` such as 100, NHERD is now stable and no ``Inf`` appeared.