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

Before Change


        acc_entropy = nan

    else:
        if "acc" in history.history.keys():
            acc_entropy = entropy(history.history["val_acc"],
                                  history.history["acc"])
            loss_entropy = entropy(history.history["val_loss"],

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:
            loss_entropy = nan
            acc_entropy = nan

    elif no_of_items >= 4:
        if "acc" in keys:
            acc_entropy = entropy(history.history["val_acc"],
                                  history.history["acc"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

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: aertslab/pySCENIC
Commit Name: 0e6804ca93a4f76300134a126d5942114b71901c
Time: 2018-12-14
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/cli/pyscenic.py
Class Name:
Method Name: prune_targets_command


Project Name: cesium-ml/cesium
Commit Name: 72a6d52997c3a950d6efbcb684f9696ab9cd2d92
Time: 2016-10-17
Author: a.crellinquick@gmail.com
File Name: doc/tools/feature_table.py
Class Name:
Method Name: feature_graph_to_rst_table


Project Name: sepandhaghighi/pycm
Commit Name: 2118f87a1d95e673ac0994989a5464480ce2ffe1
Time: 2020-09-30
Author: sabouri.sadra@gmail.com
File Name: pycm/pycm_obj.py
Class Name: ConfusionMatrix
Method Name: plot