def test_epoch(net, acts0, targets, epochnum=-1, verbose=True):
    errors, outs = net.test_trial(acts0, targets)
    if verbose:
        for act0, target, out, error in zip(acts0, targets, outs, errors):
            print '%s, %s -> %s, err = %.2f' % \
                (arr_str(act0), arr_str(target), arr_str(out), error)
    mean_error = np.mean(errors)
    print (epochnum, mean_error) % '%i) err = %.2f'
    return errors, mean_error
dataset/ETHPy150Open deprofundis/deprofundis/backprop.py/test_epoch/swapped operands of `%`