From 33c6781c996a5943e67709c94b6a43eb2048cff6 Mon Sep 17 00:00:00 2001 From: Mike J Innes Date: Mon, 1 May 2017 13:47:08 +0100 Subject: [PATCH] remove from training.jl --- src/training.jl | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/training.jl b/src/training.jl index f5b4826b..1ebc8e88 100644 --- a/src/training.jl +++ b/src/training.jl @@ -1,17 +1,3 @@ -tobatch(xs::Batch) = rawbatch(xs) -tobatch(xs) = tobatch(batchone(xs)) - -function accuracy(m, data) - n = 0 - correct = 0 - for (x, y) in data - x, y = tobatch.((x, y)) - n += size(x, 1) - correct += sum(onecold(m(x)) .== onecold(y)) - end - return correct/n -end - """ @cb for ... end t expr