e87e84a21e0dfc1258b2f868532b03fabfd66a85,autokeras/engine/adapter.py,Adapter,convert_to_dataset,#Adapter#Any#,35

Before Change


            tf.data.Dataset. The converted dataset.
        
        if isinstance(dataset, tf.data.Dataset):
            return dataset
        if isinstance(dataset, np.ndarray):
            return tf.data.Dataset.from_tensor_slices(dataset.astype(np.float32))

    def fit(self, dataset):

After Change


        if isinstance(dataset, np.ndarray):
            dataset = tf.data.Dataset.from_tensor_slices(
                dataset.astype(np.float32))
        return data_utils.batch_dataset(dataset, self.batch_size)

    def fit(self, dataset):
        Analyze the dataset and record useful information.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: jhfjhfj1/autokeras
Commit Name: e87e84a21e0dfc1258b2f868532b03fabfd66a85
Time: 2020-06-01
Author: jhfjhfj1@gmail.com
File Name: autokeras/engine/adapter.py
Class Name: Adapter
Method Name: convert_to_dataset


Project Name: OpenNMT/OpenNMT-tf
Commit Name: ad58f41d2d05700e101674a821337b75bacbb6df
Time: 2018-11-16
Author: guillaumekln@users.noreply.github.com
File Name: opennmt/utils/data.py
Class Name:
Method Name: batch_parallel_dataset