Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
Fixed score calculation w.r.t. bias values in predict()
Browse files Browse the repository at this point in the history
  • Loading branch information
myui committed Oct 18, 2013
1 parent e7759d9 commit 0130cfe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Expand Up @@ -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);
}
}

Expand Down
Binary file modified target/hivemall.jar
Binary file not shown.

0 comments on commit 0130cfe

Please sign in to comment.