Home
last modified time | relevance | path

Searched refs:_labels (Results 1 – 25 of 27) sorted by relevance

12

/external/tensorflow/tensorflow/contrib/losses/python/losses/
Dloss_ops_test.py43 self._labels = constant_op.constant([1, 9, 2, -5, -2, 6], shape=(2, 3))
57 loss = loss_ops.absolute_difference(self._predictions, self._labels)
63 loss = loss_ops.absolute_difference(self._predictions, self._labels,
70 loss = loss_ops.absolute_difference(self._predictions, self._labels,
77 loss = loss_ops.absolute_difference(self._predictions, self._labels,
84 loss = loss_ops.absolute_difference(self._predictions, self._labels,
91 loss = loss_ops.absolute_difference(self._predictions, self._labels,
98 loss = loss_ops.absolute_difference(self._predictions, self._labels,
105 loss = loss_ops.absolute_difference(self._predictions, self._labels,
641 self._labels = constant_op.constant(labels)
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Dlosses_test.py47 self._labels = constant_op.constant([1, 9, 2, -5, -2, 6], shape=(2, 3))
61 loss = losses.absolute_difference(self._labels, self._predictions)
67 loss = losses.absolute_difference(self._labels, self._predictions, weights)
73 loss = losses.absolute_difference(self._labels, self._predictions,
80 loss = losses.absolute_difference(self._labels, self._predictions, weights)
86 loss = losses.absolute_difference(self._labels, self._predictions, weights)
92 loss = losses.absolute_difference(self._labels, self._predictions, weights)
98 loss = losses.absolute_difference(self._labels, self._predictions, weights)
104 loss = losses.absolute_difference(self._labels, self._predictions, weights)
671 self._labels = constant_op.constant(labels)
[all …]
Dmetrics_test.py2088 self._labels = (
2102 for labels in self._labels:
2112 for labels in self._labels:
2545 self._labels = (
2559 for labels in self._labels:
2568 for labels in self._labels:
2577 for labels in self._labels:
2593 for labels in self._labels:
2635 for labels in self._labels:
2673 self._labels = (_binary_2d_label_to_2d_sparse_value(indicator_labels),
[all …]
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
Dhead_test.py352 self._labels = ((0, 0, 1),)
366 "labels/actual_label_mean/class0": self._labels[0][0],
367 "labels/actual_label_mean/class1": self._labels[0][1],
368 "labels/actual_label_mean/class2": self._labels[0][2],
386 {}, model_fn.ModeKeys.TRAIN, self._labels, head_lib.no_op_train_fn,
426 head = head_lib.multi_label_head(n_classes=len(self._labels[0]) + 1)
430 {}, model_fn.ModeKeys.TRAIN, self._labels, head_lib.no_op_train_fn,
439 {}, model_fn.ModeKeys.TRAIN, self._labels, head_lib.no_op_train_fn,
456 "labels/actual_label_mean/class0": self._labels[0][0],
457 "labels/actual_label_mean/class1": self._labels[0][1],
[all …]
Dhead.py1105 def _labels(self, labels_dict): member in _MultiClassHead
1146 values=((eval_loss, self._labels(labels), self._label_ids(labels),
1157 metrics_lib.accuracy(self._labels(labels), classes, weights))
/external/tensorflow/tensorflow/contrib/eager/python/examples/spinn/
Ddata.py269 self._labels = []
309 self._labels.append(POSSIBLE_LABELS.index(items[0]) + 1)
311 assert len(self._labels) == len(self._premises)
312 assert len(self._labels) == len(self._hypotheses)
313 assert len(self._labels) == len(self._premise_transitions)
314 assert len(self._labels) == len(self._hypothesis_transitions)
318 return int(math.ceil(len(self._labels) / batch_size))
345 self._labels, self._premises, self._premise_transitions,
/external/tensorflow/tensorflow/contrib/training/python/training/
Dtraining_test.py91 self._labels = np.random.randint(0, 2, size=(16, 1)).astype(np.float32)
96 tf_labels = constant_op.constant(self._labels, dtype=dtypes.float32)
110 tf_labels = constant_op.constant(self._labels, dtype=dtypes.float32)
147 tf_labels = constant_op.constant(self._labels, dtype=dtypes.float32)
180 tf_labels = constant_op.constant(self._labels, dtype=dtypes.float32)
203 tf_labels = constant_op.constant(self._labels, dtype=dtypes.float32)
230 self._labels = np.random.randint(0, 2, size=(16, 1)).astype(np.float32)
233 j = int(2 * self._labels[i] + np.random.randint(0, 2))
240 tf_labels = constant_op.constant(self._labels, dtype=dtypes.float32)
266 self._labels = np.random.randint(0, 2, size=(16, 1)).astype(np.float32)
[all …]
Devaluation_test.py151 self._labels = np.random.randint(0, 2, size=(16, 1)).astype(np.float32)
154 j = int(2 * self._labels[i] + np.random.randint(0, 2))
170 tf_labels = constant_op.constant(self._labels, dtype=dtypes.float32)
195 labels = constant_op.constant(self._labels, dtype=dtypes.float32)
270 self._labels = np.random.randint(0, 2, size=(16, 1)).astype(np.float32)
273 j = int(2 * self._labels[i] + np.random.randint(0, 2))
289 tf_labels = constant_op.constant(self._labels, dtype=dtypes.float32)
311 labels = constant_op.constant(self._labels, dtype=dtypes.float32)
366 labels = constant_op.constant(self._labels, dtype=dtypes.float32)
/external/tensorflow/tensorflow/contrib/slim/python/slim/
Dlearning_test.py233 self._labels = np.random.randint(0, 2, size=(16, 1)).astype(np.float32)
236 j = int(2 * self._labels[i] + np.random.randint(0, 2))
246 tf_labels = constant_op.constant(self._labels, dtype=dtypes.float32)
267 self._labels = np.random.randint(0, 2, size=(16, 1)).astype(np.float32)
278 tf_labels = constant_op.constant(self._labels, dtype=dtypes.float32)
316 tf_labels = constant_op.constant(self._labels, dtype=dtypes.float32)
349 tf_labels = constant_op.constant(self._labels, dtype=dtypes.float32)
374 tf_labels = constant_op.constant(self._labels, dtype=dtypes.float32)
400 tf_labels = constant_op.constant(self._labels, dtype=dtypes.float32)
420 self._labels = np.random.randint(0, 2, size=(16, 1)).astype(np.float32)
[all …]
Devaluation_test.py87 self._labels = constant_op.constant(labels, dtype=dtypes.int64)
92 labels=self._labels, predictions=self._predictions)
199 labels_limited = input.limit_epochs(self._labels, num_epochs=1)
237 self._labels = constant_op.constant(labels, dtype=dtypes.int64)
264 labels=self._labels, predictions=self._predictions)
280 labels=self._labels, predictions=self._predictions)
/external/tensorflow/tensorflow/contrib/learn/python/learn/datasets/
Dmnist.py163 self._labels = labels
173 return self._labels
200 self._labels = self.labels[perm0]
208 labels_rest_part = self._labels[start:self._num_examples]
214 self._labels = self.labels[perm]
220 labels_new_part = self._labels[start:end]
227 return self._images[start:end], self._labels[start:end]
/external/autotest/server/cros/dynamic_suite/
Dhost_spec.py271 self._labels = _safeunion(base, extended)
273 self._str = 'HostSpec %r' % sorted(self._labels)
281 return sorted(self._labels)
292 return self._labels <= other._labels
/external/tensorflow/tensorflow/contrib/nn/python/ops/
Dsampling_ops_test.py132 def _labels(self): member in RankSampledSoftmaxLossTest
156 labels=self._labels(),
175 labels=self._labels(),
193 labels=self._labels(),
209 labels=self._labels(),
222 labels=self._labels(),
/external/autotest/scheduler/
Drdb_lib.py34 self._labels = self.query_manager._get_labels(self._job_deps)
48 if not provision.is_for_special_action(self._labels[dep].name):
50 elif provision.Provision.acts_on(self._labels[dep].name):
Dquery_managers.py393 self._labels = self._get_labels(self._job_dependencies)
/external/tensorflow/tensorflow/python/training/
Devaluation_test.py69 self._labels = np.random.randint(0, 2, size=(16, 1)).astype(np.float32)
72 j = int(2 * self._labels[i] + np.random.randint(0, 2))
88 tf_labels = constant_op.constant(self._labels, dtype=dtypes.float32)
116 labels = constant_op.constant(self._labels, dtype=dtypes.float32)
143 all_labels = constant_op.constant(self._labels, dtype=dtypes.float32)
/external/autotest/server/hosts/
Dbase_label.py186 self._labels = label_list
200 for label in self._labels:
264 self._populate_known_labels(self._labels)
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DTreeWizard.cs384 IDictionary<string, object> _labels; field in Antlr.Runtime.Tree.TreeWizard.VisitTreeWizardContextVisitor
391 _labels = labels; in VisitTreeWizardContextVisitor()
398 _labels.Clear(); in Visit()
399 if ( _outer.ParseCore( t, _tpattern, _labels ) ) in Visit()
401 _visitor.Visit( t, parent, childIndex, _labels ); in Visit()
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DTreeWizard.cs333 IDictionary<string, object> _labels; field in Antlr.Runtime.Tree.TreeWizard.VisitTreeWizardContextVisitor
339 _labels = labels; in VisitTreeWizardContextVisitor()
345 _labels.Clear(); in Visit()
346 if (_outer.ParseCore(t, _tpattern, _labels)) { in Visit()
347 _visitor.Visit(t, parent, childIndex, _labels); in Visit()
/external/toolchain-utils/crosperf/
Dschedv2.py229 self._labels = self._experiment.labels
243 self._label_brl_map = dict((l, []) for l in self._labels)
251 self._mim = MachineImageManager(self._labels, self._duts)
329 return self._labels
330 return self._labels[i]
/external/python/cpython2/Lib/
Dmailbox.py1237 self._labels = {}
1243 self._labels[key] = message.get_labels()
1249 if key in self._labels:
1250 del self._labels[key]
1256 self._labels[key] = message.get_labels()
1279 if key in self._labels:
1280 msg.set_labels(self._labels[key])
1311 for label_list in self._labels.values():
1341 self._labels = dict(enumerate(label_lists))
1778 self._labels = []
[all …]
/external/python/cpython3/Lib/
Dmailbox.py1246 self._labels = {}
1252 self._labels[key] = message.get_labels()
1258 if key in self._labels:
1259 del self._labels[key]
1265 self._labels[key] = message.get_labels()
1291 if key in self._labels:
1292 msg.set_labels(self._labels[key])
1325 for label_list in self._labels.values():
1355 self._labels = dict(enumerate(label_lists))
1828 self._labels = []
[all …]
/external/tensorflow/tensorflow/contrib/labeled_tensor/python/ops/
Dcore.py109 self._labels = labels # type: Optional[tuple]
165 return self._labels
/external/toolchain-utils/cros_utils/
Dtabulator.py103 self._labels = l
180 header = [self._key_name] + self._labels
/external/tensorflow/tensorflow/python/tpu/
Dtpu_estimator.py3401 self._labels = labels
3447 return (self._features, self._labels)

12