5bab0c451fda1312cf81e9d81319799a03fce181,deeppavlov/models/squad/squad.py,SquadModel,process_event,#SquadModel#Any#Any#,326
Before Change
event_name: event_name sent by trainer
data: number of examples, epochs, metrics sent by trainer
if event_name == "after_validation":
if data["impatience"] > self.last_impatience:
self.lr_impatience += 1
else:
self.lr_impatience = 0
self.last_impatience = data["impatience"]
if self.lr_impatience >= self.learning_rate_patience:
self.lr_impatience = 0
self.learning_rate = max(self.learning_rate / 2, self.min_learning_rate)
logger.info("SQuAD model: learning_rate changed to {}".format(self.learning_rate))
logger.info("SQuAD model: lr_impatience: {}, learning_rate: {}".format(self.lr_impatience, self.learning_rate))
After Change
event_name: event_name sent by trainer
data: number of examples, epochs, metrics sent by trainer
super().process_event(event_name, data)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: deepmipt/DeepPavlov
Commit Name: 5bab0c451fda1312cf81e9d81319799a03fce181
Time: 2018-12-26
Author: mary.vikhreva@gmail.com
File Name: deeppavlov/models/squad/squad.py
Class Name: SquadModel
Method Name: process_event
Project Name: deepmipt/DeepPavlov
Commit Name: 5bab0c451fda1312cf81e9d81319799a03fce181
Time: 2018-12-26
Author: mary.vikhreva@gmail.com
File Name: deeppavlov/models/ner/network.py
Class Name: NerNetwork
Method Name: process_event
Project Name: keras-team/keras
Commit Name: 0f6b6eda26f8ccc7c8803fa2b8fab0f43fa4672a
Time: 2021-02-25
Author: scottzhu@google.com
File Name: keras/layers/preprocessing/string_lookup.py
Class Name: StringLookup
Method Name: get_vocabulary