7cd5741b572005b747b1fcae9d9acbdacd389bd4,tests/flows/test_sklearn.py,TestSklearn,test_hypothetical_parameter_values,#TestSklearn#,296

Before Change


        self.assertIsNot(deserialized, kfold)

    def test_hypothetical_parameter_values(self):
        values = ["true", "1", "0.1"]
        for value in values:
            serialized = self.converter.serialize_object(value)
            deserialized = self.converter.deserialize_object(value)
            self.assertEqual(deserialized, value)



After Change


    def test_hypothetical_parameter_values(self):
        // Can only be checked inside a model

        model = Model("true", "1", "0.1")

        serialized = self.converter.serialize_object(model)
        deserialized = self.converter.deserialize_object(serialized)
        self.assertEqual(deserialized.get_params(), model.get_params())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: openml/openml-python
Commit Name: 7cd5741b572005b747b1fcae9d9acbdacd389bd4
Time: 2016-09-08
Author: feurerm@informatik.uni-freiburg.de
File Name: tests/flows/test_sklearn.py
Class Name: TestSklearn
Method Name: test_hypothetical_parameter_values


Project Name: lingpy/lingpy
Commit Name: 64d53e3126cfb14b14bb14bcf734eec7dba4c7aa
Time: 2013-11-21
Author: mattis.list@posteo.de
File Name: lingpy/settings.py
Class Name:
Method Name:


Project Name: idealo/image-super-resolution
Commit Name: 6a400eaccfa5e37e09dab9c4ad1ea282422bbbd4
Time: 2020-01-07
Author: testadicardi@gmail.com
File Name: ISR/models/cut_vgg19.py
Class Name: Cut_VGG19
Method Name: _cut_vgg