89b703017ad90e56ce6382bb4686cab3430c46bc,ristretto/sketch/transforms.py,,randomized_uniform_sampling,#Any#Any#Any#Any#,13

Before Change


    if A.ndim != 2:
        raise ValueError("A must be a 2D array, not %dD" % A.ndim)

    if axis not in (0, 1):
        raise ValueError("If supplied, axis must be in (0, 1)")

    // sample l rows/columns with equal probability
    idx = _sketches.random_axis_sample(A, l, axis, random_state)

    if axis == 0:
        return A[idx]
    return A[:, idx]


def johnson_lindenstrauss(A, l, n_subspace=None, axis=1, random_state=None):

After Change


    // sample l rows/columns with equal probability
    idx = _sketches.random_axis_sample(A, l, axis, random_state)

    return np.take(A, idx, axis=axis)


def johnson_lindenstrauss(A, l, n_subspace=None, axis=1, random_state=None):
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: erichson/ristretto
Commit Name: 89b703017ad90e56ce6382bb4686cab3430c46bc
Time: 2018-05-22
Author: jknox13@uw.edu
File Name: ristretto/sketch/transforms.py
Class Name:
Method Name: randomized_uniform_sampling


Project Name: scikit-learn-contrib/DESlib
Commit Name: 44bdf9be3b913a1a0e90115e45edbee192d01b90
Time: 2018-03-31
Author: rafaelmenelau@gmail.com
File Name: deslib/des/probabilistic.py
Class Name: Probabilistic
Method Name: estimate_competence


Project Name: automl/auto-sklearn
Commit Name: 84dd314904ba2004ab35bbea65c5f2cb684e073c
Time: 2016-02-24
Author: a.domashnev@gmail.com
File Name: autosklearn/estimators.py
Class Name: AutoSklearnClassifier
Method Name: predict