Permalink
Browse files

Fixed VOC metric

  • Loading branch information...
1 parent 1dd6ad0 commit f8951ede581e5b0a92b23c2b6705e7b1e186323d @clementfarabet committed Feb 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ConfusionMatrix.lua
View
2 ConfusionMatrix.lua
@@ -59,7 +59,7 @@ function ConfusionMatrix:updateValids()
self.averageValid = self.averageValid + self.valids[t]
nvalids = nvalids + 1
end
- if not sys.isNaN(self.unionvalids[t]) then
+ if not sys.isNaN(self.valids[t]) and not sys.isNaN(self.unionvalids[t]) then
self.averageUnionValid = self.averageUnionValid + self.unionvalids[t]
nunionvalids = nunionvalids + 1
end

0 comments on commit f8951ed

Please sign in to comment.