a832ad85e57224dfa57e51ae75fb45faf8ac0ca6,docs/py/text_classification.py,,,#,17

Before Change




import tensorflow as tf
train_set = tf.data.Dataset.from_tensor_slices(((x_train, ), (y_train, )))
test_set = tf.data.Dataset.from_tensor_slices(((x_test, ), (y_test, )))

clf = ak.TextClassifier(max_trials=10)
// Feed the tensorflow Dataset to the classifier.

After Change




import tensorflow as tf
train_set = tf.data.Dataset.from_tensor_slices(((x_train, ), (y_train, ))).batch(32)
test_set = tf.data.Dataset.from_tensor_slices(((x_test, ), (y_test, ))).batch(32)

clf = ak.TextClassifier(max_trials=3)
// Feed the tensorflow Dataset to the classifier.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: keras-team/autokeras
Commit Name: a832ad85e57224dfa57e51ae75fb45faf8ac0ca6
Time: 2020-06-09
Author: jhfjhfj1@gmail.com
File Name: docs/py/text_classification.py
Class Name:
Method Name:


Project Name: keras-team/autokeras
Commit Name: e87e84a21e0dfc1258b2f868532b03fabfd66a85
Time: 2020-06-01
Author: jhfjhfj1@gmail.com
File Name: tests/utils.py
Class Name:
Method Name: generate_one_hot_labels