def scale(X):
    """
    Standardize a dataset along any axis
    Center to the mean and component wise scale to unit variance.

    """
    means = X.mean(axis=0)
    stds = X.std(axis=0)
    return (X - X.mean(axis=0))/(X.std(axis=0)+0.0000001)