a0d5162fb500d43f4be26fd402271fc888397464,Orange/tests/test_classification.py,LearnerAccessibility,test_all_models_work_after_unpickling,#LearnerAccessibility#,204

Before Change


                traceback.print_exc()
                continue

            model2 = pickle.loads(pickle.dumps(model))
            np.testing.assert_almost_equal(model(iris), model2(iris),
                                           err_msg="%s does not return same values when unpickled" % learner.__name__)

After Change



            for ds in datasets:
                model = learner(ds)
                s = pickle.dumps(model, 0)
                model2 = pickle.loads(s)

                np.testing.assert_almost_equal(Table(model.domain, ds).X, Table(model2.domain, ds).X)
                np.testing.assert_almost_equal(model(ds), model2(ds),
                                               err_msg="%s does not return same values when unpickled %s" % (learner.__class__.__name__, ds.name))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: biolab/orange3
Commit Name: a0d5162fb500d43f4be26fd402271fc888397464
Time: 2015-06-24
Author: anze.staric@gmail.com
File Name: Orange/tests/test_classification.py
Class Name: LearnerAccessibility
Method Name: test_all_models_work_after_unpickling


Project Name: RasaHQ/rasa
Commit Name: dc08464102e571d2cf4265319ed37319ada12bb6
Time: 2018-09-28
Author: tom@rasa.com
File Name: rasa_core/policies/ensemble.py
Class Name: PolicyEnsemble
Method Name: load_metadata


Project Name: tyarkoni/pliers
Commit Name: 196681275fa95723c25534511a0c2c59ed1bde5c
Time: 2020-04-21
Author: rbrrcc@gmail.com
File Name: pliers/stimuli/vector.py
Class Name: VectorStim
Method Name: __init__