296fbaab0845e1e1c25ff1f64ab7a0583e9c4cbc,Generator/gan_main.py,GAN,train,#GAN#,99
Before Change
// Train GAN model (generate injection codes).
def train(self, df_genes, list_sigs):
X_train = []
self.flt_size = len(df_genes)/2.0
// Load train data (=ga result).
X_train = np.array(list_sigs)
After Change
for eval_place in self.eval_place_list:
// Build html syntax.
html = self.template.render({eval_place: str_html})
with codecs.open(self.eval_html_path, "w", encoding="utf-8") as fout:
fout.write(html)
// Evaluate individual using selenium.
selenium_score, error_flag = self.util.check_individual_selenium(self.obj_browser,
self.eval_html_path)
if error_flag:
continue
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: 13o-bbr-bbq/machine_learning_security
Commit Name: 296fbaab0845e1e1c25ff1f64ab7a0583e9c4cbc
Time: 2018-09-12
Author: takaesu235@gmail.com
File Name: Generator/gan_main.py
Class Name: GAN
Method Name: train
Project Name: kevinzakka/recurrent-visual-attention
Commit Name: fd723d719ddb49b66a5084215343de763a40083d
Time: 2018-01-23
Author: kevinarmandzakka@gmail.com
File Name: trainer.py
Class Name: Trainer
Method Name: train_one_epoch
Project Name: kevinzakka/recurrent-visual-attention
Commit Name: fd723d719ddb49b66a5084215343de763a40083d
Time: 2018-01-23
Author: kevinarmandzakka@gmail.com
File Name: trainer.py
Class Name: Trainer
Method Name: validate