Browse Source

A bit of fuzzyness

Loweel 4 years ago
parent
commit
51497b5cc0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      matrix.go

+ 2 - 2
matrix.go

@@ -121,8 +121,8 @@ func (c *ByClassifier) Posterior(hdr string) map[string]float64 {
 
 	log.Printf("Bad Tokens: %f, Good Tokens %f , Total %f\n", tmpResBad, tmpResGood, tmpTotal)
 
-	result["BAD"] = tmpResBad + tmpResMeh/tmpTotal
-	result["GOOD"] = tmpResGood + tmpResMeh/tmpTotal
+	result["BAD"] = (tmpResBad + tmpResMeh) / tmpTotal
+	result["GOOD"] = (tmpResGood + tmpResMeh) / tmpTotal
 
 	return result