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(
                [e[0] for e in disagreement if e[1] == disagreement[0][1]])

        elif self.disagreement == "kl_divergence":

After Change


            for i, student in enumerate(self.students):
                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: 4

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: tensorflow/ranking
Commit Name: 6bf3f51cd0a312da842157665663c2dad9983248
Time: 2021-01-29
Author: xuanhui@google.com
File Name: tensorflow_ranking/python/losses_impl.py
Class Name: ClickEMLoss
Method Name: _compute_latent_prob


Project Name: biolab/orange3
Commit Name: 69a472517120ffee300a967b2fe9b3bc05f5cf4b
Time: 2015-06-23
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/widgets/unsupervised/owmds.py
Class Name: OWMDS
Method Name: _setup_plot