Browse files

Fixed score calculation w.r.t. bias values in predict()

  • Loading branch information...
1 parent e7759d9 commit 0130cfe15086d07ac4f08c187b07cabb61d1c2d0 @myui committed Oct 18, 2013
View
2 src/main/hivemall/classifier/BinaryOnlineClassifierUDTF.java
@@ -200,7 +200,7 @@ protected float predict(final List<?> features) {
if(biasKey != null) {
WeightValue biasWeight = weights.get(biasKey);
if(biasWeight != null) {
- score += (biasWeight.getValue() + bias);
+ score += (biasWeight.getValue() * bias);
}
}
View
BIN target/hivemall.jar
Binary file not shown.

0 comments on commit 0130cfe

Please sign in to comment.