12f8fb89877344a669f8ee37c19edef05b7d1676,language/nql/nql/dataset_test.py,TestTFDataset,test_normalize,#TestTFDataset#,121

Before Change


        b"b": NP_B,
        b"c": 0.5 * (NP_C + NP_D),
    }
    for (s, a) in instances:
      self.assertEqual(type(s), self.tf_string_type)
      np.testing.assert_array_equal(a, exp_values[s])

  def test_normalize_empty(self):
    dset = dataset.tuple_dataset(
        self.context,
        self.empty_examples, [str, "uc_t"],

After Change


        b"b": NP_B,
        b"c": 0.5 * (NP_C + NP_D),
    }
    self.check_instances(instances, exp_values)

  def test_normalize_empty(self):
    dset = dataset.tuple_dataset(
        self.context,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 5

Instances


Project Name: google-research/language
Commit Name: 12f8fb89877344a669f8ee37c19edef05b7d1676
Time: 2020-04-04
Author: kentonl@google.com
File Name: language/nql/nql/dataset_test.py
Class Name: TestTFDataset
Method Name: test_normalize


Project Name: google-research/language
Commit Name: 12f8fb89877344a669f8ee37c19edef05b7d1676
Time: 2020-04-04
Author: kentonl@google.com
File Name: language/nql/nql/dataset_test.py
Class Name: TestTFDataset
Method Name: test_empty_recovery


Project Name: google-research/language
Commit Name: 12f8fb89877344a669f8ee37c19edef05b7d1676
Time: 2020-04-04
Author: kentonl@google.com
File Name: language/nql/nql/dataset_test.py
Class Name: TestTFDataset
Method Name: test_lookup


Project Name: google-research/language
Commit Name: 12f8fb89877344a669f8ee37c19edef05b7d1676
Time: 2020-04-04
Author: kentonl@google.com
File Name: language/nql/nql/dataset_test.py
Class Name: TestTFDataset
Method Name: test_handle_unk_entity


Project Name: google-research/language
Commit Name: 12f8fb89877344a669f8ee37c19edef05b7d1676
Time: 2020-04-04
Author: kentonl@google.com
File Name: language/nql/nql/dataset_test.py
Class Name: TestTFDataset
Method Name: test_error_recovery


Project Name: google-research/language
Commit Name: 12f8fb89877344a669f8ee37c19edef05b7d1676
Time: 2020-04-04
Author: kentonl@google.com
File Name: language/nql/nql/dataset_test.py
Class Name: TestTFDataset
Method Name: test_normalize_empty