From 066cb45a38a12ef9b59cd109e1d092fc07c80856 Mon Sep 17 00:00:00 2001 From: Mike J Innes Date: Tue, 13 Feb 2018 11:12:21 +0000 Subject: [PATCH] remove old accuracy fn --- src/utils.jl | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index bba3e416..36bae680 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -72,17 +72,6 @@ end # Other -function accuracy(m, data) - n = 0 - correct = 0 - for (x, y) in data - x, y = tobatch.((x, y)) - n += size(x, 1) - correct += sum(argmax(m(x)) .== argmax(y)) - end - return correct/n -end - """ Returns a function that when invoked, will only be triggered at most once during `timeout` seconds. Normally, the throttled function will run