dde3dc3195209ac20ba7f104d8a36a052bb10dcb,tensorflow_datasets/structured/iris.py,Iris,_generate_examples,#Iris#Any#,85

Before Change


  def _generate_examples(self, records):
    for record in records:
      elems = record.split(",")
      yield {
          "features": [float(e) for e in elems[:-1]],
          "label": elems[-1],
      }

After Change


    ]

  def _generate_examples(self, records):
    for i, row in enumerate(records):
      elems = row.split(",")
      record = {
          "features": [float(e) for e in elems[:-1]],
          "label": elems[-1],
      }
      if self.version.implements(tfds.core.Experiment.S3):
        yield i, record
      else:
        yield record
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 14

Instances


Project Name: tensorflow/datasets
Commit Name: dde3dc3195209ac20ba7f104d8a36a052bb10dcb
Time: 2019-08-07
Author: 31502077+ChanchalKumarMaji@users.noreply.github.com
File Name: tensorflow_datasets/structured/iris.py
Class Name: Iris
Method Name: _generate_examples


Project Name: tensorflow/datasets
Commit Name: dde3dc3195209ac20ba7f104d8a36a052bb10dcb
Time: 2019-08-07
Author: 31502077+ChanchalKumarMaji@users.noreply.github.com
File Name: tensorflow_datasets/structured/iris.py
Class Name: Iris
Method Name: _generate_examples


Project Name: tensorflow/datasets
Commit Name: dde3dc3195209ac20ba7f104d8a36a052bb10dcb
Time: 2019-08-07
Author: 31502077+ChanchalKumarMaji@users.noreply.github.com
File Name: tensorflow_datasets/structured/titanic.py
Class Name: Titanic
Method Name: _generate_examples


Project Name: tensorflow/datasets
Commit Name: b6f768a025394a37848b1a3448319bb622c89e0a
Time: 2019-06-12
Author: pierrot@google.com
File Name: tensorflow_datasets/image/mnist.py
Class Name: MNIST
Method Name: _generate_examples