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
random_doc = None
while random_doc is None or (len(random_doc.bundles) < self.rival_number):
random_doc = self.random_candgen.generate_tree(da, random_doc)
if (random_doc.bundles[-1].get_zone(self.language, self.selector).ttree
== 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])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: jaakkopasanen/AutoEq
Commit Name: 5798262e2f9d254f37cbe762f89747b7049a8acc
Time: 2020-10-18
Author: jaakko.o.pasanen@gmail.com
File Name: measurements/crinacle/crinacle_crawler.py
Class Name: CrinacleCrawler
Method Name: get_urls
Project Name: pgmpy/pgmpy
Commit Name: 2e2fcd1c79a70e5cb7a9bae8b09dca2919041e39
Time: 2015-02-01
Author: ankurankan@gmail.com
File Name: pgmpy/inference/ExactInference.py
Class Name: VariableElimination
Method Name: _variable_elimination