def calc_accu(a, b):
    """
    Returns the accuracy (in %) between arrays <a> and <b>. The two arrays must
    be column/row vectors.
    """
    a = a.flatten()
    b = b.flatten()
    accu = 100.0 * (a == b).sum() / len(a)

    return accu