801b9fa29ac99ed51dc54318db742285879f09a5,libact/query_strategies/multilabel/binary_minimization.py,BinaryMinimization,make_query,#BinaryMinimization#,62

Before Change


            clfs.append(clf)

        choices = [i[1]
                   for i in np.where(np.array(boundaries) == np.min(boundaries))]
        ask_id = self.random_state_.choice(choices)

        return unlabeled_entry_ids[ask_id]

After Change


            boundaries.append(np.abs(clf.predict_real(X_pool)[:, 1]))
            clfs.append(clf)

        choices = np.where(np.array(boundaries) == np.min(boundaries))[1]
        ask_id = self.random_state_.choice(choices)

        return unlabeled_entry_ids[ask_id]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: ntucllab/libact
Commit Name: 801b9fa29ac99ed51dc54318db742285879f09a5
Time: 2017-02-14
Author: yangarbiter@gmail.com
File Name: libact/query_strategies/multilabel/binary_minimization.py
Class Name: BinaryMinimization
Method Name: make_query


Project Name: suavecode/SUAVE
Commit Name: 6fd1cef5797fd76e8ea6b68ee9338dce759768ad
Time: 2020-06-06
Author: ebotero@stanford.edu
File Name: trunk/SUAVE/Methods/Aerodynamics/Common/Fidelity_Zero/Lift/compute_induced_velocity_matrix.py
Class Name:
Method Name: compute_mach_cone_matrix


Project Name: inspirehep/magpie
Commit Name: 7b426aca129928c62935c71a0cc4d5495fe814e4
Time: 2016-01-21
Author: jan.stypka@cern.ch
File Name: magpie/nn/nn.py
Class Name:
Method Name: compare_results


Project Name: suavecode/SUAVE
Commit Name: f8d5bf0b1025e84f6e5c807cf9ec15e06c200ec9
Time: 2021-01-04
Author: ebotero@stanford.edu
File Name: trunk/SUAVE/Methods/Geometry/Two_Dimensional/Cross_Section/Airfoil/compute_airfoil_polars.py
Class Name:
Method Name: compute_airfoil_polars