fix(session): missing n definition throws error

This commit is contained in:
Mahdi Dibaiee
2016-07-17 17:14:50 +04:30
parent fb01d936c2
commit 763faef434
5 changed files with 5 additions and 4 deletions

View File

@ -90,7 +90,8 @@ module Lib
session :: [Input] -> Network -> [Output] -> Double -> Int -> Network
session inputs network labels alpha epochs =
foldl' iter network [0..n * epochs]
let n = length inputs - 1
in foldl' iter network [0..n * epochs]
where
iter net i =
let n = length inputs - 1

BIN
src/Lib.o

Binary file not shown.