d6c1b86594ef9a97e9f503547ab6567f89508486,tests/integration_tests/test_api.py,,test_api_intent_classification,#Any#,64
Before Change
def test_api_intent_classification(csv_filename):
// Single sequence input, single category output
input_features = Template("[{name: utterance, type: sequence,"
"vocab_size: 10, max_len: 10, "
"encoder: ${encoder}, reduce_output: sum}]")
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
)
for encoder in ENCODERS:
run_api_experiment(
input_features.substitute(encoder=encoder) ,
output_features,
data_csv=rel_path
)
After Change
def test_api_intent_classification(csv_filename):
// Single sequence input, single category output
input_features = [sequence_feature(reduce_output="sum")]
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:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances Project Name: uber/ludwig
Commit Name: d6c1b86594ef9a97e9f503547ab6567f89508486
Time: 2019-05-01
Author: smiryala@uber.com
File Name: tests/integration_tests/test_api.py
Class Name:
Method Name: test_api_intent_classification
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
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_experiment_multi_input_intent_classification