6fa78eebb531215d2fb5f5955a9ff353b6b8ddf7,examples/tangent_pca_so3.py,,main,#,19

Before Change


    eigenvalues, tangent_eigenvecs = METRIC.tangent_pca(data, base_point=mean)
    n_eigenvalues = min(N_SAMPLES, SO3_GROUP.dimension)

    explained_variances = np.cumsum(eigenvalues)
    explained_variances = explained_variances / explained_variances[-1]

    ax_eig = fig.add_subplot(131)
    xticks = np.arange(0, n_eigenvalues, 1)
    ax_eig.xaxis.set_ticks(xticks)

After Change



    tpca = TangentPCA(metric=METRIC, n_components=N_COMPONENTS)
    tpca = tpca.fit(data, base_point=mean)
    tangent_projected_data = tpca.transform(data)
    print(
        "Coordinates of the Log of the first 5 data points at the mean, "
        "projected on the principal components:")
    print(tangent_projected_data[:5])

    ax_var = fig.add_subplot(121)
    xticks = np.arange(1, N_COMPONENTS+1, 1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: geomstats/geomstats
Commit Name: 6fa78eebb531215d2fb5f5955a9ff353b6b8ddf7
Time: 2019-08-28
Author: ninamio78@gmail.com
File Name: examples/tangent_pca_so3.py
Class Name:
Method Name: main


Project Name: pymc-devs/pymc3
Commit Name: fd76e96ce1a9718be1ae141c5f3cabddf48ca85f
Time: 2020-09-27
Author: dominik.otto@izi.fraunhofer.de
File Name: pymc3/distributions/transforms.py
Class Name: StickBreaking
Method Name: forward_val


Project Name: pymc-devs/pymc3
Commit Name: fd76e96ce1a9718be1ae141c5f3cabddf48ca85f
Time: 2020-09-27
Author: dominik.otto@izi.fraunhofer.de
File Name: pymc3/distributions/transforms.py
Class Name: StickBreaking
Method Name: forward