76af726f4d58fd445496734a41e22ff36afe3657,dual_net.py,StatisticsCollector,collect,#StatisticsCollector#,346

Before Change


        self.policy_costs = []
        self.value_costs = []
        self.regularization_costs = []
        self.combined_costs = []
        summary = self.session.run(self.accuracy_summaries,
                                   feed_dict={self.policy_error: avg_pol,
                                              self.value_error: avg_val,
                                              self.reg_error: avg_reg,

After Change


        for summary_name, summary_values in self.accums.items():
            avg_value = sum(summary_values) / len(summary_values)
            self.accums[summary_name] = []
            all_summaries.append(tf.Summary.Value(
                tag=summary_name, simple_value=avg_value))
        return tf.Summary(value=all_summaries)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/minigo
Commit Name: 76af726f4d58fd445496734a41e22ff36afe3657
Time: 2018-02-06
Author: brian.kihoon.lee@gmail.com
File Name: dual_net.py
Class Name: StatisticsCollector
Method Name: collect


Project Name: tensorflow/tensorboard
Commit Name: 8e5c969aa4113b93dfa43d6075ad3bb8eb500f4a
Time: 2017-08-15
Author: wchargin@gmail.com
File Name: tensorboard/data_compat_test.py
Class Name: MigrateValueTest
Method Name: test_audio


Project Name: Calamari-OCR/calamari
Commit Name: d21eff5a278668fa2aae005257a07300e6d44f67
Time: 2018-05-04
Author: wick.chr.info@gmail.com
File Name: calamari_ocr/proto/converters.py
Class Name:
Method Name: network_params_from_definition_string