d6c1b86594ef9a97e9f503547ab6567f89508486,tests/integration_tests/test_experiment.py,,test_experiment_tied_weights,#Any#,230

Before Change



def test_experiment_tied_weights(csv_filename):
    // Single sequence input, single category output
    input_features = Template("[{name: utterance1, type: text,"
                              "vocab_size: 10, max_len: 10, "
                              "encoder: ${encoder}, reduce_output: sum},"
                              "{name: utterance2, type: text, vocab_size: 10,"
                              "max_len: 10, encoder: ${encoder}, "
                              "reduce_output: sum, tied_weights: utterance1}]")
    output_features = "[{name: intent, type: category, vocab_size: 2," \
                      " reduce_input: sum}] "

    // Generate test data
    rel_path = generate_data(
        input_features.substitute(encoder="rnn"),
        output_features,
        csv_filename
    )

After Change



def test_experiment_tied_weights(csv_filename):
    // Single sequence input, single category output
    input_features = [
        text_feature(
            name="text_feature1",
            min_len=1,
            encoder="cnnrnn",
            reduce_output="sum"
        ),
        text_feature(
            name="text_feature2",
            min_len=1,
            encoder="cnnrnn",
            reduce_output="sum",
            tied_weights="text_feature1"
        )
    ]
    output_features = [categorical_feature(vocab_size=2, reduce_input="sum")]

    // Generate test data
    rel_path = generate_data(input_features, output_features, csv_filename)
    for encoder in ENCODERS:
        input_features[0]["encoder"] = encoder
        input_features[1]["encoder"] = encoder
        run_experiment(input_features, output_features, data_csv=rel_path)


def test_experiment_attention(csv_filename):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: uber/ludwig
Commit Name: d6c1b86594ef9a97e9f503547ab6567f89508486
Time: 2019-05-01
Author: smiryala@uber.com
File Name: tests/integration_tests/test_experiment.py
Class Name:
Method Name: test_experiment_tied_weights


Project Name: uber/ludwig
Commit Name: d6c1b86594ef9a97e9f503547ab6567f89508486
Time: 2019-05-01
Author: smiryala@uber.com
File Name: tests/integration_tests/test_experiment.py
Class Name:
Method Name: test_image_resizing_num_channel_handling


Project Name: uber/ludwig
Commit Name: d6c1b86594ef9a97e9f503547ab6567f89508486
Time: 2019-05-01
Author: smiryala@uber.com
File Name: tests/integration_tests/test_experiment.py
Class Name:
Method Name: test_experiment_image_inputs