def fit_transform(pca, X):
    (U, S, V) = pca._fit(X)
    if pca.whiten:
        U *= sqrt(X.shape[0])
    else:
        U *= S
    V = V.transpose()
    return (U, V)
def fit_transform(pca, X):
    (U, S, V) = pca._fit(X)
    if pca.whiten:
        U *= sqrt(X.shape[0])
    else:
        U *= S
    V = V.transpose()
    return (U, V)