186d9b18da83758e3e3e2d0270a96276fb0d792c,tensorflow/python/keras/layers/preprocessing/category_encoding_test.py,CategoryEncodingCombinerTest,test_serialize,#CategoryEncodingCombinerTest#,763

Before Change


    self.assertAllClose(model.predict([[1]]), loaded_model.predict([[1]]))

  def test_serialize(self):
    encoder = category_encoding.CategoryEncoding()
    encoder.adapt([1, 2, 3])
    model = keras.Sequential([encoder])
    _ = keras.models.clone_model(model)

After Change


    self.assertAllClose(model.predict([[1]]), loaded_model.predict([[1]]))

  def test_serialize(self):
    cls = get_layer_class()
    encoder = cls()
    encoder.adapt([1, 2, 3])
    model = keras.Sequential([encoder])
    _ = keras.models.clone_model(model)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: tensorflow/tensorflow
Commit Name: 186d9b18da83758e3e3e2d0270a96276fb0d792c
Time: 2021-01-15
Author: omalleyt@google.com
File Name: tensorflow/python/keras/layers/preprocessing/category_encoding_test.py
Class Name: CategoryEncodingCombinerTest
Method Name: test_serialize


Project Name: keras-team/keras
Commit Name: 35146d00b44ca645fbf4ad0b007faa07632c6f9e
Time: 2021-01-19
Author: scottzhu@google.com
File Name: keras/layers/preprocessing/category_encoding_test.py
Class Name: CategoryEncodingCombinerTest
Method Name: test_saving_loading


Project Name: keras-team/keras
Commit Name: 35146d00b44ca645fbf4ad0b007faa07632c6f9e
Time: 2021-01-19
Author: scottzhu@google.com
File Name: keras/layers/preprocessing/category_encoding_test.py
Class Name: CategoryEncodingCombinerTest
Method Name: test_serialize


Project Name: tensorflow/tensorflow
Commit Name: 186d9b18da83758e3e3e2d0270a96276fb0d792c
Time: 2021-01-15
Author: omalleyt@google.com
File Name: tensorflow/python/keras/layers/preprocessing/category_encoding_test.py
Class Name: CategoryEncodingCombinerTest
Method Name: test_saving_loading