ec01f586b20cc3e9e15146e71d9248301ba277ae,tgen/rank.py,PerceptronRanker,_get_rival_candidates,#PerceptronRanker#,250

Before Change


        // candidates generated using the random planner (use the current DA)
        if "random" in self.rival_gen_strategy:
            random_doc = self.random_candgen.generate_tree(da)
            for _ in xrange(self.rival_number - 1):
                self.random_candgen.generate_tree(da, random_doc)
            rival_ttrees.extend(ttrees_from_doc(random_doc, self.language, self.selector))
            rival_feats.extend([self.vectorizer.transform(self.feats.get_features(ttree, {"da": da}))
                                for ttree in rival_ttrees])

After Change


                    == train_ttrees[gold_ttree_no]):  // don"t generate trees identical to the gold one
                    del random_doc.bundles[-1]
            random_ttrees = ttrees_from_doc(random_doc, self.language, self.selector)
            rival_ttrees.extend(random_ttrees)
            rival_feats.extend([self.vectorizer.transform(self.feats.get_features(ttree, {"da": da}))
                                for ttree in random_ttrees])

        // return all resulting candidates
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: UFAL-DSG/tgen
Commit Name: ec01f586b20cc3e9e15146e71d9248301ba277ae
Time: 2014-07-02
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/rank.py
Class Name: PerceptronRanker
Method Name: _get_rival_candidates


Project Name: GoogleCloudPlatform/healthcare
Commit Name: 8a43360b5683edc8d8e4b9461b01a9d1f8dcd782
Time: 2019-05-21
Author: umairidris@google.com
File Name: deploy/create_project.py
Class Name:
Method Name: create_compute_images


Project Name: librosa/librosa
Commit Name: 4b7ac95fcffa7a947b61913df34f252ba168a3fa
Time: 2013-12-23
Author: brm2132@columbia.edu
File Name: librosa/util.py
Class Name:
Method Name: get_audio_files


Project Name: nilearn/nilearn
Commit Name: a558255238007ebd0d1905c024c59290097dbab2
Time: 2017-02-23
Author: dkamalakarreddy@gmail.com
File Name: nilearn/plotting/__init__.py
Class Name:
Method Name:


Project Name: ShangtongZhang/DeepRL
Commit Name: 641acac5aa5f3b5bae1a5777160614e1d9e0bbfd
Time: 2020-07-16
Author: zhangshangtong.cpp@gmail.com
File Name: template_jobs.py
Class Name:
Method Name: batch_atari