44bdf9be3b913a1a0e90115e45edbee192d01b90,deslib/des/probabilistic.py,Probabilistic,estimate_competence,#Probabilistic#Any#Any#,113

Before Change


        
        // TODO: Adapt this function to batch processing
        dists, idx_neighbors = self._get_region_competence(query)
        dists_organized = np.array([dists[index] for index in np.argsort(idx_neighbors)])

        potential_dists = self.potential_func(dists_organized)
        sum_potential = np.sum(potential_dists)

After Change


        
        // TODO: Adapt this function to batch processing
        dists, idx_neighbors = self._get_region_competence(query)
        idx_neighbors = np.atleast_2d(idx_neighbors)
        dists = np.atleast_2d(dists)
        dists_organized = np.take(dists, idx_neighbors)

        //dists_organized = np.array([dists[index] for index in np.argsort(idx_neighbors)])
        potential_dists = self.potential_func(dists_organized)
        sum_potential = np.sum(potential_dists, axis=1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


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: nipy/dipy
Commit Name: 928f7f31c574765d13253f5bee7565e28717fcc4
Time: 2015-01-25
Author: mrbago@gmail.com
File Name: dipy/reconst/csdeconv.py
Class Name:
Method Name: csdeconv


Project Name: prody/ProDy
Commit Name: f6bb3e9608d45ceee5279864f785bd58f3c579e1
Time: 2012-11-26
Author: lordnapi@gmail.com
File Name: lib/prody/tests/test_sequence/test_msa.py
Class Name: TestRefinement
Method Name: testRowCol


Project Name: pandas-dev/pandas
Commit Name: ae0d302c735720739ed4e1bc1e1a231df24356c0
Time: 2021-02-03
Author: 61934744+phofl@users.noreply.github.com
File Name: pandas/core/reshape/reshape.py
Class Name:
Method Name: _stack_multi_columns