a88f1cd9d4aba6e8a0abc156aa0d64c165967bd9,tests/test_neural_net.py,,test_model_widths,#Any#,277

Before Change


    w4_w6_loss = 0.0
    for _ in range(100):
        for i, (features, label) in enumerate(xor_data):
            eg = w4.Example(features, gold=label)
            w4_loss += w4.train(eg)
            eg = w4_w6.Example(features, gold=label)
            w4_w6_loss += w4_w6.train(eg)
        random.shuffle(xor_data)
    // We don"t know that the extra width is better, but it shouldn"t be
    // *much* worse

After Change


    w4_w6_loss = 0.0
    for _ in range(100):
        for i, (features, label, costs) in enumerate(or_data):
            w4_loss += w4.train([(features, costs)])
            w4_w6_loss += w4_w6.train([(features, costs)])
        random.shuffle(or_data)
    // We don"t know that the extra width is better, but it shouldn"t be
    // *much* worse
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: explosion/thinc
Commit Name: a88f1cd9d4aba6e8a0abc156aa0d64c165967bd9
Time: 2015-12-19
Author: honnibal@gmail.com
File Name: tests/test_neural_net.py
Class Name:
Method Name: test_model_widths


Project Name: explosion/thinc
Commit Name: a88f1cd9d4aba6e8a0abc156aa0d64c165967bd9
Time: 2015-12-19
Author: honnibal@gmail.com
File Name: tests/test_neural_net.py
Class Name:
Method Name: test_xor_rho


Project Name: explosion/thinc
Commit Name: a88f1cd9d4aba6e8a0abc156aa0d64c165967bd9
Time: 2015-12-19
Author: honnibal@gmail.com
File Name: tests/test_neural_net.py
Class Name:
Method Name: test_xor_eta


Project Name: explosion/thinc
Commit Name: a88f1cd9d4aba6e8a0abc156aa0d64c165967bd9
Time: 2015-12-19
Author: honnibal@gmail.com
File Name: tests/test_neural_net.py
Class Name:
Method Name: test_model_widths