9de6ee32f0e2e6cc6157f0772aa8c28a8d662fe8,ludwig/models/model.py,Model,check_progress_on_validation,#Model#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,767
Before Change
progress_tracker.best_valid_measure = \
progress_tracker.vali_stats[validation_field][validation_measure][
-1]
self.save_weights(session, model_weights_path)
self.save_hyperparameters(self.hyperparameters,
model_hyperparameters_path)
progress_tracker.last_improvement = progress_tracker.epoch - \
After Change
progress_tracker.vali_stats[validation_field][
validation_measure][
-1]
if is_on_master():
self.save_weights(session, model_weights_path)
self.save_hyperparameters(self.hyperparameters,
model_hyperparameters_path)
progress_tracker.last_improvement = progress_tracker.epoch - \
progress_tracker.last_improvement_epoch
if progress_tracker.last_improvement == 0:
if is_on_master():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: uber/ludwig
Commit Name: 9de6ee32f0e2e6cc6157f0772aa8c28a8d662fe8
Time: 2019-02-01
Author: w4nderlust@gmail.com
File Name: ludwig/models/model.py
Class Name: Model
Method Name: check_progress_on_validation
Project Name: minimaxir/textgenrnn
Commit Name: a504724d0c877492329bd99b903864ea219cdae6
Time: 2018-06-15
Author: irek@post.com
File Name: textgenrnn/utils.py
Class Name: save_model_weights
Method Name: on_epoch_end
Project Name: deepmipt/DeepPavlov
Commit Name: 286a864220a00732d382a75051e11877acf13c3f
Time: 2018-01-24
Author: ol.gure@gmail.com
File Name: deeppavlov/core/models/keras_model.py
Class Name: KerasModel
Method Name: save