7a64a6de40303b7febb4ec02cb925dc948117160,deepplantphenomics/deepplantpheno.py,DPPModel,beginTraining,#DPPModel#,207

Before Change


        if self.__load_from_saved is not False:
            self.__log("Loading from checkpoint file...")
            saver = tf.train.Saver()
            saver.restore(self.__session, tf.train.latest_checkpoint(self.__load_from_saved))

            self.__initializeQueueRunners()

            self.__log("Computing total test accuracy/regression loss...")

After Change


                if hasattr(layer, "name"):
                    tf.summary.histogram("weights/"+layer.name, layer.weights, collections=["custom_summaries"])
                    tf.summary.histogram("biases/"+layer.name, layer.biases, collections=["custom_summaries"])
                    tf.summary.histogram("activations/"+layer.name, layer.activations, collections=["custom_summaries"])

            merged = tf.summary.merge_all(key="custom_summaries")
            train_writer = tf.summary.FileWriter(self.__tb_dir, self.__session.graph)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: p2irc/deepplantphenomics
Commit Name: 7a64a6de40303b7febb4ec02cb925dc948117160
Time: 2017-01-31
Author: jubbens@gmail.com
File Name: deepplantphenomics/deepplantpheno.py
Class Name: DPPModel
Method Name: beginTraining


Project Name: michaelhush/M-LOOP
Commit Name: a334cd6f04461ca8d57f35f0ebde68f5520fd689
Time: 2020-06-15
Author: zakven@mit.edu
File Name: mloop/neuralnet.py
Class Name: SingleNeuralNet
Method Name: load


Project Name: GPflow/GPflow
Commit Name: c442e87d0b6a88e9787e8e82eb493e0dcf669c4d
Time: 2020-03-26
Author: dutordoirv@gmail.com
File Name: doc/source/notebooks/intro_to_gpflow2.pct.py
Class Name:
Method Name: