def accs():
    mf1_accs = []
    assert isinstance(test.X.shape[0], py_integer_types)
    assert isinstance(batch_size, py_integer_types)
    iterator = test.iterator(mode = 'even_sequential',
                            batch_size = batch_size,
                            data_specs = model.cost_from_X_data_specs())
    for item in iterator:
        x_arg, y_arg = item
        mf1_accs.append(batch_acc(x_arg, y_arg)[0])
    return float(len(mf1_accs)) / sum(mf1_accs)
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/scripts/papers/maxout/compute_test_err.py/accs/swapped operands of `/`