93f338dde1048217ffb10923ad1f8ce8487cb8b3,python/mxnet/gluon/contrib/estimator/event_handler.py,EarlyStoppingHandler,__init__,#EarlyStoppingHandler#Any#Any#Any#Any#Any#,652

Before Change


        self.stopped_epoch = 0
        self.current_epoch = 0
        self.stop_training = False
        self.logger = logging.getLogger(__name__)

        if mode not in ["auto", "min", "max"]:
            warnings.warn("EarlyStopping mode %s is unknown, "
                          "fallback to auto mode. CheckpointHandler will use"

After Change


            self.monitor_op = np.greater
        else:
            if "acc" or "f1" in self.monitor.get()[0].lower():
                warnings.warn("`greater` operator will be used to determine if {} has improved. "
                              "Please specify `mode="min"` to use the `less` operator. "
                              "Specify `mode="max" to disable this warning.`"
                              .format(self.monitor.get()[0]))
                self.monitor_op = np.greater
            else:
                warnings.warn("`less` operator will be used to determine if {} has improved. "
                              "Please specify `mode="max"` to use the `greater` operator. "
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: apache/incubator-mxnet
Commit Name: 93f338dde1048217ffb10923ad1f8ce8487cb8b3
Time: 2019-11-16
Author: lausen@amazon.com
File Name: python/mxnet/gluon/contrib/estimator/event_handler.py
Class Name: EarlyStoppingHandler
Method Name: __init__


Project Name: apache/incubator-mxnet
Commit Name: 93f338dde1048217ffb10923ad1f8ce8487cb8b3
Time: 2019-11-16
Author: lausen@amazon.com
File Name: python/mxnet/gluon/contrib/estimator/event_handler.py
Class Name: CheckpointHandler
Method Name: __init__


Project Name: allenai/allennlp
Commit Name: 4c99f8e82f7fd70c86652109bfca5282d470e981
Time: 2018-09-10
Author: markn@allenai.org
File Name: allennlp/data/dataset_readers/atis.py
Class Name:
Method Name: