c99295e1903952b3b806c4fd641e28f852b17c36,autokeras/utils.py,ModelTrainer,train_model,#ModelTrainer#,101

Before Change


        Train the model with dataset and return the minimum_loss
        self.training_losses = []
        self._no_improvement_count = 0
        self.minimum_loss = float("inf")
        batch_size = min(self.x_train.shape[0], 200)
        if constant.DATA_AUGMENTATION:
            flow = self.datagen.flow(self.x_train, self.y_train, batch_size)
        else:

After Change


        terminator = EarlyStop()
        lr_scheduler = LearningRateScheduler(lr_schedule)

        lr_reducer = ReduceLROnPlateau(factor=np.sqrt(0.1),
                                       cooldown=0,
                                       patience=5,
                                       min_lr=0.5e-6)

        callbacks = [terminator, lr_scheduler, lr_reducer]
        if constant.LIMIT_MEMORY:
            config = tf.ConfigProto()
            config.gpu_options.allow_growth = True
            sess = tf.Session(config=config)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: keras-team/autokeras
Commit Name: c99295e1903952b3b806c4fd641e28f852b17c36
Time: 2018-04-18
Author: jhfjhfj1@gmail.com
File Name: autokeras/utils.py
Class Name: ModelTrainer
Method Name: train_model


Project Name: has2k1/plotnine
Commit Name: d61852b93c266d88578beab47d262801cf7dd99b
Time: 2013-10-19
Author: greg@yhathq.com
File Name: ggplot/geoms/facet_wrap.py
Class Name: facet_wrap
Method Name: __radd__


Project Name: nilearn/nilearn
Commit Name: 6704c535b8c59ab3b9b98c0489a051654c1ee727
Time: 2013-04-05
Author: philippe.gervais@inria.fr
File Name: nisl/signals.py
Class Name:
Method Name: _standardize