Home
last modified time | relevance | path

Searched refs:label_mode (Results 1 – 9 of 9) sorted by relevance

/external/tensorflow/tensorflow/python/keras/preprocessing/
Dtext_dataset.py32 label_mode='int', argument
131 if label_mode not in {'int', 'categorical', 'binary', None}:
134 'or None. Received: %s' % (label_mode,))
135 if labels is None or label_mode is None:
137 label_mode = None
152 if label_mode == 'binary' and len(class_names) != 2:
165 label_mode=label_mode,
179 label_mode, argument
186 if label_mode:
187 label_ds = dataset_utils.labels_to_dataset(labels, label_mode, num_classes)
Dimage_dataset.py38 label_mode='int', argument
163 if label_mode not in {'int', 'categorical', 'binary', None}:
166 'or None. Received: %s' % (label_mode,))
167 if labels is None or label_mode is None:
169 label_mode = None
195 if label_mode == 'binary' and len(class_names) != 2:
210 label_mode=label_mode,
229 label_mode, argument
239 if label_mode:
240 label_ds = dataset_utils.labels_to_dataset(labels, label_mode, num_classes)
Dtext_dataset_test.py81 directory, batch_size=5, label_mode=None, max_length=10)
98 directory, batch_size=8, label_mode='int', max_length=10)
108 directory, batch_size=8, label_mode='binary')
117 directory, batch_size=8, label_mode='categorical')
128 directory, batch_size=8, label_mode=None)
138 directory, batch_size=8, label_mode=None)
143 directory, batch_size=8, label_mode=None)
151 directory, batch_size=8, label_mode='int')
160 directory, batch_size=8, label_mode='categorical')
195 directory, batch_size=8, label_mode=None, follow_links=True)
[all …]
Dimage_dataset_test.py127 directory, batch_size=8, image_size=(18, 18), label_mode='int')
136 directory, batch_size=8, image_size=(18, 18), label_mode='binary')
145 directory, batch_size=8, image_size=(18, 18), label_mode='categorical')
159 directory, batch_size=8, image_size=(18, 18), label_mode='int')
175 directory, batch_size=8, image_size=(18, 18), label_mode=None)
188 directory, batch_size=8, image_size=(18, 18), label_mode=None)
193 directory, batch_size=8, image_size=(18, 18), label_mode=None)
201 directory, batch_size=8, image_size=(18, 18), label_mode='int')
210 directory, batch_size=8, image_size=(18, 18), label_mode='categorical')
275 directory, batch_size=8, image_size=(18, 18), label_mode=None,
[all …]
Ddataset_utils.py201 def labels_to_dataset(labels, label_mode, num_classes): argument
213 if label_mode == 'binary':
216 elif label_mode == 'categorical':
/external/tensorflow/tensorflow/python/keras/datasets/
Dcifar100.py32 def load_data(label_mode='fine'): argument
59 if label_mode not in ['fine', 'coarse']:
72 x_train, y_train = load_batch(fpath, label_key=label_mode + '_labels')
75 x_test, y_test = load_batch(fpath, label_key=label_mode + '_labels')
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.keras.preprocessing.pbtxt17 …argspec: "args=[\'directory\', \'labels\', \'label_mode\', \'class_names\', \'color_mode\', \'batc…
21 …argspec: "args=[\'directory\', \'labels\', \'label_mode\', \'class_names\', \'batch_size\', \'max_…
Dtensorflow.keras.datasets.cifar100.pbtxt5 argspec: "args=[\'label_mode\'], varargs=None, keywords=None, defaults=[\'fine\'], "
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.keras.datasets.cifar100.pbtxt5 argspec: "args=[\'label_mode\'], varargs=None, keywords=None, defaults=[\'fine\'], "