e5a98adc53c682047bd6873c127c9c94588b28ab,Python/phate/mds.py,,cmdscale_fast,#,15

Before Change


    _logger.debug("Performing classic MDS on {} of shape {}...".format(
        type(D).__name__, D.shape))
    D = D**2
    D = D - D.mean(axis=0)[None, :]
    D = D - D.mean(axis=1)[:, None]
    pca = PCA(n_components=ndim, svd_solver="randomized")
    Y = pca.fit_transform(D)
    return Y


def embed_MDS(X, ndim=2, how="metric", distance_metric="euclidean",
              n_jobs=1, seed=None, verbose=0):

After Change


// Fast classical MDS using random svd
@deprecated("1.5.0", reason="Use phate.mds.classic instead")
def cmdscale_fast(D, ndim):
    return classic(D=D, n_components=ndim)


def classic(D, n_components=2, random_state=None):
    Fast CMDS using random SVD
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 4

Instances


Project Name: KrishnaswamyLab/PHATE
Commit Name: e5a98adc53c682047bd6873c127c9c94588b28ab
Time: 2019-12-01
Author: scottgigante@gmail.com
File Name: Python/phate/mds.py
Class Name:
Method Name: cmdscale_fast


Project Name: fgnt/pb_bss
Commit Name: dc73adceb385e24770450a6335066b8644cdcb12
Time: 2019-08-16
Author: jheymann@mail.uni-paderborn.de
File Name: nt/speech_enhancement/noise/utils.py
Class Name:
Method Name: get_variance_for_zero_mean_signal


Project Name: maciejkula/spotlight
Commit Name: 2767c948afa434f863df3b5eb1946a032dfba588
Time: 2017-07-13
Author: maciej.kula@gmail.com
File Name: spotlight/losses.py
Class Name:
Method Name: hinge_loss


Project Name: luispedro/mahotas
Commit Name: bfed60a3d5316783b87601ab4f9e282f02519452
Time: 2010-08-12
Author: lpc@cmu.edu
File Name: mahotas/center_of_mass.py
Class Name:
Method Name: center_of_mass


Project Name: inspirehep/magpie
Commit Name: 03f75a47e377e7e92f2f72bff9c360fad349679d
Time: 2016-03-01
Author: jan.stypka@cern.ch
File Name: magpie/evaluation/standard_evaluation.py
Class Name:
Method Name: evaluate_results


Project Name: ClementPinard/FlowNetPytorch
Commit Name: f450bdb5976a90adde139f04847225c746d7df13
Time: 2017-11-29
Author: clement.pinard@parrot.com
File Name: multiscaleloss.py
Class Name:
Method Name: EPE