2df451029d31850d7f5353b3786b875f17f740a5,hypertools/tools/reduce.py,,reduce,#Any#Any#Any#Any#Any#Any#Any#Any#Any#,18

Before Change


            return [x_r[0]]

    // dictionary of models
    models = {
        "PCA" : PCA,
        "IncrementalPCA" : IncrementalPCA,
        "SparsePCA" : SparsePCA,
        "MiniBatchSparsePCA" : MiniBatchSparsePCA,
        "KernelPCA" : KernelPCA,
        "FastICA" : FastICA,
        "FactorAnalysis" : FactorAnalysis,
        "TruncatedSVD" : TruncatedSVD,
        "DictionaryLearning" : DictionaryLearning,
        "MiniBatchDictionaryLearning" : MiniBatchDictionaryLearning,
        "TSNE" : TSNE,
        "Isomap" : Isomap,
        "SpectralEmbedding" : SpectralEmbedding,
        "LocallyLinearEmbedding" : LocallyLinearEmbedding,
        "MDS" : MDS,
        "UMAP" : UMAP
    }

    // deprecated warning
    if (model is not None) or (model_params is not None):
        warnings.warn("Model and model params will be deprecated.  Please use the \

After Change


        if format_data:
            x = formatter(x, ppca=True)

        if np.vstack([i for i in x]).shape[0]==1:
            warnings.warn("Cannot reduce the dimensionality of a single row of"
                          " data. Return zeros length of ndims")
            return [np.zeros((1, ndims))]
        if ndims:
            if np.vstack([i for i in x]).shape[0]<ndims:
                warnings.warn("The number of rows in your data is less than ndims."
                              " The data will be reduced to the number of rows.")

        // deprecation warnings
        if normalize is not None:
            warnings.warn("The normalize argument will be deprecated for this function.  Please use the \
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ContextLab/hypertools
Commit Name: 2df451029d31850d7f5353b3786b875f17f740a5
Time: 2018-04-06
Author: andrew.heusser@gmail.com
File Name: hypertools/tools/reduce.py
Class Name:
Method Name: reduce


Project Name: dmlc/gluon-nlp
Commit Name: c9e80b3f0d81a69e7022b2447ee6809d4e2d2ed7
Time: 2019-05-07
Author: linhaibin.eric@gmail.com
File Name: scripts/bert/finetune_classifier.py
Class Name:
Method Name:


Project Name: mne-tools/mne-python
Commit Name: b0e691f895be4d7d7dbd8a445a6242c567924ee0
Time: 2019-02-21
Author: clemens.brunner@gmail.com
File Name: mne/preprocessing/ica.py
Class Name: ICA
Method Name: __init__