fc5fddb022d2bdfd1b9f0de673ae5fc8c99bf677,snips_nlu/tests/test_log_reg_intent_classifier.py,TestLogRegIntentClassifier,test_should_be_serializable_into_bytearray,#TestLogRegIntentClassifier#,357

Before Change


        intent_classifier_bytes = intent_classifier.to_byte_array()
        custom_entity_parser = CustomEntityParser.build(
            dataset, CustomEntityParserUsage.WITHOUT_STEMS)
        builtin_entity_parser = BuiltinEntityParser.build(language="en")
        loaded_classifier = LogRegIntentClassifier.from_byte_array(
            intent_classifier_bytes,
            builtin_entity_parser=builtin_entity_parser,
            custom_entity_parser=custom_entity_parser)

After Change


- brew two cups of coffee
- can you prepare one cup of coffee)
        dataset = Dataset.from_yaml_files("en", [dataset_stream]).json
        shared = self.get_shared_data(dataset)
        intent_classifier = LogRegIntentClassifier(**shared).fit(dataset)

        // When
        intent_classifier_bytes = intent_classifier.to_byte_array()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: snipsco/snips-nlu
Commit Name: fc5fddb022d2bdfd1b9f0de673ae5fc8c99bf677
Time: 2019-01-17
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_log_reg_intent_classifier.py
Class Name: TestLogRegIntentClassifier
Method Name: test_should_be_serializable_into_bytearray


Project Name: snipsco/snips-nlu
Commit Name: fc5fddb022d2bdfd1b9f0de673ae5fc8c99bf677
Time: 2019-01-17
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_log_reg_intent_classifier.py
Class Name: TestLogRegIntentClassifier
Method Name: test_should_get_intent_after_deserialization


Project Name: snipsco/snips-nlu
Commit Name: ee0dab4ec731092cb6a976c86320c7c681b42718
Time: 2019-01-17
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_deterministic_intent_parser.py
Class Name: TestDeterministicIntentParser
Method Name: test_should_parse_intent_after_deserialization


Project Name: snipsco/snips-nlu
Commit Name: ee0dab4ec731092cb6a976c86320c7c681b42718
Time: 2019-01-17
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_deterministic_intent_parser.py
Class Name: TestDeterministicIntentParser
Method Name: test_should_parse_slots_after_deserialization


Project Name: snipsco/snips-nlu
Commit Name: ee0dab4ec731092cb6a976c86320c7c681b42718
Time: 2019-01-17
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_deterministic_intent_parser.py
Class Name: TestDeterministicIntentParser
Method Name: test_should_be_serializable_into_bytearray