69cae211e2790a14f5a0c667b4ac92daaad5ea00,examples/trials/mnist-keras/mnist-keras.py,SendMetrics,on_epoch_end,#SendMetrics#Any#Any#,84

Before Change


        Run on end of each epoch
        """
        LOG.debug(logs)
        nni.report_intermediate_result(logs["val_acc"])

def train(args, params):
    """
    Train model

After Change


        """
        LOG.debug(logs)
        // TensorFlow 2.0 API reference claims the key is `val_acc`, but in fact it"s `val_accuracy`
        if "val_acc" in logs:
            nni.report_intermediate_result(logs["val_acc"])
        else:
            nni.report_intermediate_result(logs["val_accuracy"])

def train(args, params):
    """
    Train model
    """
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: Microsoft/nni
Commit Name: 69cae211e2790a14f5a0c667b4ac92daaad5ea00
Time: 2020-05-19
Author: 27178119+squirrelsc@users.noreply.github.com
File Name: examples/trials/mnist-keras/mnist-keras.py
Class Name: SendMetrics
Method Name: on_epoch_end


Project Name: Microsoft/nni
Commit Name: 69cae211e2790a14f5a0c667b4ac92daaad5ea00
Time: 2020-05-19
Author: 27178119+squirrelsc@users.noreply.github.com
File Name: examples/trials/network_morphism/FashionMNIST/FashionMNIST_keras.py
Class Name: SendMetrics
Method Name: on_epoch_end


Project Name: Microsoft/nni
Commit Name: 69cae211e2790a14f5a0c667b4ac92daaad5ea00
Time: 2020-05-19
Author: 27178119+squirrelsc@users.noreply.github.com
File Name: examples/trials/network_morphism/cifar10/cifar10_keras.py
Class Name: SendMetrics
Method Name: on_epoch_end


Project Name: Microsoft/nni
Commit Name: 69cae211e2790a14f5a0c667b4ac92daaad5ea00
Time: 2020-05-19
Author: 27178119+squirrelsc@users.noreply.github.com
File Name: examples/trials/mnist-batch-tune-keras/mnist-keras.py
Class Name: SendMetrics
Method Name: on_epoch_end