dc36a4bed2f3fe345052834e68ee0040c6708d0e,tests/sequence_labelling/preprocess_test.py,TestFeaturesPreprocessor,test_should_fit_multiple_single_value_features,#TestFeaturesPreprocessor#,98
Before Change
preprocessor = FeaturesPreprocessor()
features_batch = [[[FEATURE_VALUE_1, FEATURE_VALUE_2]]]
features_transformed = preprocessor.fit_transform(features_batch)
LOGGER.debug("features_transformed: %s", features_transformed)
LOGGER.debug("features_transformed.shape: %s", features_transformed.shape)
assert features_transformed.shape == (1, 1, 2)
assert all_close(features_transformed, [[[1, 1]]])
def test_should_transform_unseen_to_zero(self):
After Change
def test_should_fit_multiple_single_value_features(self):
preprocessor = FeaturesPreprocessor()
features_batch = [[[FEATURE_VALUE_1, FEATURE_VALUE_2]]]
features_transformed, features_length = preprocessor.fit_transform(features_batch)
assert features_length == 2
assert all_close(features_transformed, [[[1, 1]]])
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: kermitt2/delft
Commit Name: dc36a4bed2f3fe345052834e68ee0040c6708d0e
Time: 2019-12-23
Author: luca@foppiano.org
File Name: tests/sequence_labelling/preprocess_test.py
Class Name: TestFeaturesPreprocessor
Method Name: test_should_fit_multiple_single_value_features
Project Name: kermitt2/delft
Commit Name: dc36a4bed2f3fe345052834e68ee0040c6708d0e
Time: 2019-12-23
Author: luca@foppiano.org
File Name: tests/sequence_labelling/preprocess_test.py
Class Name: TestFeaturesPreprocessor
Method Name: test_should_select_features
Project Name: kermitt2/delft
Commit Name: dc36a4bed2f3fe345052834e68ee0040c6708d0e
Time: 2019-12-23
Author: luca@foppiano.org
File Name: tests/sequence_labelling/preprocess_test.py
Class Name: TestFeaturesPreprocessor
Method Name: test_should_fit_single_value_feature
Project Name: kermitt2/delft
Commit Name: dc36a4bed2f3fe345052834e68ee0040c6708d0e
Time: 2019-12-23
Author: luca@foppiano.org
File Name: tests/sequence_labelling/preprocess_test.py
Class Name: TestFeaturesPreprocessor
Method Name: test_should_fit_multiple_single_value_features
Project Name: kermitt2/delft
Commit Name: dc36a4bed2f3fe345052834e68ee0040c6708d0e
Time: 2019-12-23
Author: luca@foppiano.org
File Name: tests/sequence_labelling/preprocess_test.py
Class Name: TestFeaturesPreprocessor
Method Name: test_should_fit_single_multiple_value_features