Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 0130cfe15086d07ac4f08c187b07cabb61d1c2d0 1 parent e7759d9
@myui authored
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.
Something went wrong with that request. Please try again.