bd9d11f8b28a311807906b26395a8ed4f5b74181,talos/metrics/entropy.py,,epoch_entropy,#Any#,5

Before Change


      to be thought about properly.
    """

    no_of_items = len(list(history.history.keys()))

    if no_of_items == 1:
        loss_entropy = entropy(history.history["loss"])
        acc_entropy = nan

After Change


            acc_entropy = nan

    elif no_of_items == 2:
        if "acc" in keys and "loss" in keys:
            loss_entropy = entropy(history.history["loss"])
            acc_entropy = entropy(history.history["acc"])
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: autonomio/talos
Commit Name: bd9d11f8b28a311807906b26395a8ed4f5b74181
Time: 2018-10-04
Author: mailme@mikkokotila.com
File Name: talos/metrics/entropy.py
Class Name:
Method Name: epoch_entropy


Project Name: OpenNMT/OpenNMT-py
Commit Name: bc1351d47d9fe83bc6c7830a8563ddb874953ed4
Time: 2019-01-09
Author: benzurdopeters@gmail.com
File Name: onmt/inputters/inputter.py
Class Name:
Method Name: load_fields_from_vocab


Project Name: keras-team/keras
Commit Name: 4135aeebc46a29487757bb97c51f213d17b529c0
Time: 2017-06-16
Author: francois.chollet@gmail.com
File Name: keras/utils/test_utils.py
Class Name:
Method Name: layer_test


Project Name: williamFalcon/pytorch-lightning
Commit Name: f08c025c104069eb9ce73674f017b30e2684ec16
Time: 2021-01-06
Author: rohitgr1998@gmail.com
File Name: pytorch_lightning/callbacks/lr_monitor.py
Class Name: LearningRateMonitor
Method Name: _extract_stats