ebdc663828f18e9a8229de038480ac8811239115,tensorflow/python/data/experimental/kernel_tests/directed_interleave_dataset_test.py,DirectedInterleaveDatasetTest,testSampleFromDatasets,#DirectedInterleaveDatasetTest#Any#,68

Before Change


    // expected distribution. Based on the implementation in
    // "third_party/tensorflow/python/kernel_tests/multinomial_op_test.py".
    for probs in [[.85, .05, .1], rand_probs, [1.]]:
      weights = np.asarray(probs)
      if weights_as_dataset:
        weights = dataset_ops.Dataset.from_tensors(weights).repeat()
      classes = len(probs)

      // Create a dataset that samples each integer in `[0, num_datasets)`
      // with probability given by `weights[i]`.

After Change


    // expected distribution. Based on the implementation in
    // "third_party/tensorflow/python/kernel_tests/multinomial_op_test.py".
    for probs in [[.85, .05, .1], rand_probs, [1.]]:
      weights = _get_weights_of_type(np.asarray(probs), weights_type)
      classes = len(probs)

      // Create a dataset that samples each integer in `[0, num_datasets)`
      // with probability given by `weights[i]`.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: tensorflow/tensorflow
Commit Name: ebdc663828f18e9a8229de038480ac8811239115
Time: 2021-04-29
Author: yangchen@google.com
File Name: tensorflow/python/data/experimental/kernel_tests/directed_interleave_dataset_test.py
Class Name: DirectedInterleaveDatasetTest
Method Name: testSampleFromDatasets


Project Name: tensorflow/tensorflow
Commit Name: ebdc663828f18e9a8229de038480ac8811239115
Time: 2021-04-29
Author: yangchen@google.com
File Name: tensorflow/python/data/experimental/kernel_tests/directed_interleave_dataset_test.py
Class Name: DirectedInterleaveDatasetTest
Method Name: testSampleFromDatasetsWithZeroWeight


Project Name: tensorflow/tensorflow
Commit Name: ebdc663828f18e9a8229de038480ac8811239115
Time: 2021-04-29
Author: yangchen@google.com
File Name: tensorflow/python/data/experimental/kernel_tests/directed_interleave_dataset_test.py
Class Name: DirectedInterleaveDatasetTest
Method Name: testSampleFromDatasetsStoppingOnEmptyDataset


Project Name: tensorflow/tensorflow
Commit Name: ebdc663828f18e9a8229de038480ac8811239115
Time: 2021-04-29
Author: yangchen@google.com
File Name: tensorflow/python/data/experimental/kernel_tests/directed_interleave_dataset_test.py
Class Name: DirectedInterleaveDatasetTest
Method Name: testSampleFromDatasetsSkippingEmptyDataset