561ec05d900a6cf6092c2b15aae069d81717e99a,fastTSNE/tsne.py,TSNE,generate_initial_coordinates,#TSNE#Any#Any#,363

Before Change


        // number of components
        elif initialization == "pca":
            pca = PCA(n_components=self.n_components)
            return pca.fit_transform(X)

        // Random initialization with isotropic normal distribution
        elif initialization == "random":
            return np.random.normal(0, 1e-2, (X.shape[0], self.n_components))

After Change


        // number of components
        elif initialization == "pca":
            pca = PCA(n_components=self.n_components)
            embedding = pca.fit_transform(X)
            // The PCA embedding may have high variance, which leads to poor convergence
            normalization = np.std(embedding, axis=0) * 100
            embedding /= normalization
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: pavlin-policar/openTSNE
Commit Name: 561ec05d900a6cf6092c2b15aae069d81717e99a
Time: 2018-09-20
Author: pavlin.g.p@gmail.com
File Name: fastTSNE/tsne.py
Class Name: TSNE
Method Name: generate_initial_coordinates


Project Name: EducationalTestingService/skll
Commit Name: fcbbb5ff9ded7060a2cbbf9970ea481fa2db77b3
Time: 2013-02-01
Author: dblanchard@ets.org
File Name: classifier.py
Class Name: Classifier
Method Name: train


Project Name: IBM/AIF360
Commit Name: 59f85a9fd78286ce39b0f3de6af2cb6e50e799fa
Time: 2020-02-19
Author: hoffman.sc@gmail.com
File Name: aif360/sklearn/preprocessing/reweighing.py
Class Name: ReweighingMeta
Method Name: fit


Project Name: shaypal5/pdpipe
Commit Name: dfd6864366895e34162193889af1eaa741722ccc
Time: 2018-04-17
Author: shay@zencity.io
File Name: pdpipe/core.py
Class Name: PdPipeline
Method Name: fit