6da7cbab9c91f9fbdb3c6032fd31f5a5cf0118df,tests/nlu/featurizers/test_featurizer.py,,test_combine_with_existing_sparse_features,#,45

Before Change



def test_combine_with_existing_sparse_features():

    featurizer = Featurizer({"return_sequence": False})
    attribute = SPARSE_FEATURE_NAMES[TEXT_ATTRIBUTE]

    existing_features = scipy.sparse.csr_matrix([[1, 0, 2, 3], [2, 0, 0, 1]])
    new_features = scipy.sparse.csr_matrix([[1, 0], [0, 1]])

After Change



def test_combine_with_existing_sparse_features():

    featurizer = Featurizer()
    attribute = SPARSE_FEATURE_NAMES[TEXT_ATTRIBUTE]

    existing_features = scipy.sparse.csr_matrix([[1, 0, 2, 3], [2, 0, 0, 1]])
    new_features = scipy.sparse.csr_matrix([[1, 0], [0, 1]])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 3

Instances


Project Name: RasaHQ/rasa
Commit Name: 6da7cbab9c91f9fbdb3c6032fd31f5a5cf0118df
Time: 2020-01-30
Author: tabergma@gmail.com
File Name: tests/nlu/featurizers/test_featurizer.py
Class Name:
Method Name: test_combine_with_existing_sparse_features


Project Name: RasaHQ/rasa
Commit Name: 6da7cbab9c91f9fbdb3c6032fd31f5a5cf0118df
Time: 2020-01-30
Author: tabergma@gmail.com
File Name: tests/nlu/featurizers/test_featurizer.py
Class Name:
Method Name: test_combine_with_existing_sparse_features_shape_mismatch


Project Name: RasaHQ/rasa
Commit Name: 6da7cbab9c91f9fbdb3c6032fd31f5a5cf0118df
Time: 2020-01-30
Author: tabergma@gmail.com
File Name: tests/nlu/featurizers/test_featurizer.py
Class Name:
Method Name: test_combine_with_existing_dense_features_shape_mismatch


Project Name: RasaHQ/rasa
Commit Name: 3ae7626b4734dd2c65e7e4ce3a03dd40e3118cca
Time: 2019-12-09
Author: tabergma@gmail.com
File Name: tests/nlu/featurizers/test_featurizer.py
Class Name:
Method Name: test_combine_with_existing_sparse_features


Project Name: RasaHQ/rasa
Commit Name: 3ae7626b4734dd2c65e7e4ce3a03dd40e3118cca
Time: 2019-12-09
Author: tabergma@gmail.com
File Name: tests/nlu/featurizers/test_featurizer.py
Class Name:
Method Name: test_combine_with_existing_sparse_features_shape_mismatch


Project Name: RasaHQ/rasa
Commit Name: 3ae7626b4734dd2c65e7e4ce3a03dd40e3118cca
Time: 2019-12-09
Author: tabergma@gmail.com
File Name: tests/nlu/featurizers/test_featurizer.py
Class Name:
Method Name: test_combine_with_existing_dense_features


Project Name: RasaHQ/rasa
Commit Name: 3ae7626b4734dd2c65e7e4ce3a03dd40e3118cca
Time: 2019-12-09
Author: tabergma@gmail.com
File Name: tests/nlu/featurizers/test_featurizer.py
Class Name:
Method Name: test_combine_with_existing_dense_features_shape_mismatch


Project Name: RasaHQ/rasa
Commit Name: 6da7cbab9c91f9fbdb3c6032fd31f5a5cf0118df
Time: 2020-01-30
Author: tabergma@gmail.com
File Name: tests/nlu/featurizers/test_featurizer.py
Class Name:
Method Name: test_combine_with_existing_dense_features