f617c357258a6c7f403a5c044355782c7077fc52,qanta/guesser/vw.py,VWGuesser,train,#VWGuesser#,110
Before Change
else:
raise ValueError("The options multiclass_one_against_all and multiclass_online_trees are XOR")
shell("vw -k {multiclass_flag} {max_label} -d /tmp/vw_train.txt -f /tmp/vw_guesser.model --loss_function "
"logistic --ngram 1 --ngram 2 --skips 1 -c --passes {passes} -b {bits} "
"--l1 {l1} --l2 {l2} -l {learning_rate} --decay_learning_rate {decay_learning_rate}".format(
max_label=self.max_label,
multiclass_flag=multiclass_flag, bits=self.bits,
l1=self.l1, l2=self.l2, passes=self.passes,
learning_rate=self.learning_rate, decay_learning_rate=self.decay_learning_rate
))
After Change
options.append(f"--l2 {self.l2}")
command = " ".join(options)
log.info(f"Running: {command}")
shell(command)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: Pinafore/qb
Commit Name: f617c357258a6c7f403a5c044355782c7077fc52
Time: 2018-04-06
Author: ski.rodriguez@gmail.com
File Name: qanta/guesser/vw.py
Class Name: VWGuesser
Method Name: train
Project Name: mittagessen/kraken
Commit Name: e1f05f64e4618a8d76fcf8550af0e23734ef06f5
Time: 2020-10-05
Author: mittagessen@l.unchti.me
File Name: kraken/lib/xml.py
Class Name:
Method Name: parse_alto
Project Name: pytorch/ignite
Commit Name: 90a753c9d419597530ae36aebc10653e4ea15f1d
Time: 2021-02-11
Author: vfdev.5@gmail.com
File Name: examples/contrib/cifar10_qat/main.py
Class Name:
Method Name: log_basic_info