e9d3004f9515708edafd5fc5f96a81e564d40d2a,theanolm/src/theanolm/trainers/validationaveragetrainer.py,ValidationAverageTrainer,_validate,#ValidationAverageTrainer#Any#,18

Before Change


                              "measured. Decreasing learning rate.",
                              validations_since_best)
                if self.options["recall_when_annealing"]:
                    self.network.set_state(self.network_state_min_cost)
                    self.set_state(self.trainer_state_min_cost)
                self.decrease_learning_rate()
                if self.options["reset_when_annealing"]:
                    self.optimizer.reset()

After Change


        if validations_since_best == 0:
            // At least three validations have been performed and this is the
            // minimum cost so far.
            assert not self.previous_state is None

            // The minimum cost is from the three previous validations.
            // Previous validation is in the middle of those validations.
            self._set_min_cost_state(self.previous_state)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: senarvi/theanolm
Commit Name: e9d3004f9515708edafd5fc5f96a81e564d40d2a
Time: 2015-10-14
Author: seppo.git@marjaniemi.com
File Name: theanolm/src/theanolm/trainers/validationaveragetrainer.py
Class Name: ValidationAverageTrainer
Method Name: _validate


Project Name: senarvi/theanolm
Commit Name: e9d3004f9515708edafd5fc5f96a81e564d40d2a
Time: 2015-10-14
Author: seppo.git@marjaniemi.com
File Name: theanolm/src/theanolm/trainers/basictrainer.py
Class Name: BasicTrainer
Method Name: _validate


Project Name: streamlit/streamlit
Commit Name: 9f1aecdae6c3405f745e2f3e671b3f165aceb742
Time: 2019-08-06
Author: tconkling@gmail.com
File Name: lib/streamlit/ScriptRunner.py
Class Name: ScriptRunner
Method Name: _run_script