def normalize(data):
    """
    Normalize data set to have zero mean and unit variance.

    Args
      data: A numpy array of arrays containing input or target data.

    Returns
      A normalized numpy array of arrays.

    """

    return (data - data.mean(axis=0)) / data.var(axis=0)