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


            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"])
        else:
            acc_entropy = nan

        if "loss" in keys:
            loss_entropy = entropy(history.history["val_loss"],
                                   history.history["loss"])
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: gooofy/zamia-speech
Commit Name: 85861ea5c5320518267405bef050a0dab933e069
Time: 2018-02-17
Author: guenter@zamia.org
File Name: phone_gen.py
Class Name:
Method Name:


Project Name: D2KLab/entity2rec
Commit Name: a02d9d9f91d04ec2247f1dd955cf1fd912dc27f1
Time: 2018-11-15
Author: enricopalumbo0@gmail.com
File Name: entity2rec/sparql.py
Class Name: Sparql
Method Name: get_item_metadata


Project Name: Coder-Yu/RecQ
Commit Name: eb9b33646872a2565dae65b17e9cb908e886386a
Time: 2016-11-12
Author: 156698920@qq.com
File Name: algorithm/rating/SlopeOne.py
Class Name: SlopeOne
Method Name: predict