e857888dff9361561fcc96068ab50f79ed5a26bc,libact/query_strategies/query_by_committee.py,QueryByCommittee,make_query,#QueryByCommittee#,187

Before Change


            for i, student in enumerate(self.students):
                votes[:, i] = student.predict(X_pool)

            id_disagreement = [(i, dis) for i, dis in
                               zip(unlabeled_entry_ids,
                                   self._vote_disagreement(votes))]

            disagreement = sorted(id_disagreement, key=lambda id_dis: id_dis[1],
                                  reverse=True)
            ask_id = self.random_state_.choice(

After Change


                votes[:, i] = student.predict(X_pool)

            vote_entropy = self._vote_disagreement(votes)
            ask_idx = self.random_state_.choice(
                    np.where(np.isclose(vote_entropy, np.max(vote_entropy)))[0])

        elif self.disagreement == "kl_divergence":
            proba = []
            for student in self.students:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: ntucllab/libact
Commit Name: e857888dff9361561fcc96068ab50f79ed5a26bc
Time: 2017-01-30
Author: yangarbiter@gmail.com
File Name: libact/query_strategies/query_by_committee.py
Class Name: QueryByCommittee
Method Name: make_query


Project Name: scipy/scipy
Commit Name: b127d30a0a0a3d3d7ad94dd629d2e673b6477cc8
Time: 2016-02-16
Author: tyler.je.reddy@gmail.com
File Name: scipy/spatial/_spherical_voronoi.py
Class Name: SphericalVoronoi
Method Name: _calc_vertices_regions


Project Name: tyarkoni/pliers
Commit Name: ac01e154f49924817ac851577aed4b34304e22b2
Time: 2020-03-03
Author: rbrrcc@gmail.com
File Name: pliers/extractors/text.py
Class Name: BertLMExtractor
Method Name: _mask