• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14# ==============================================================================
15"""Enum for metric keys (deprecated).
16
17This module and all its submodules are deprecated. See
18[contrib/learn/README.md](https://www.tensorflow.org/code/tensorflow/contrib/learn/README.md)
19for migration instructions.
20"""
21from __future__ import absolute_import
22from __future__ import division
23from __future__ import print_function
24
25
26class MetricKey(object):
27  """Metric key strings (deprecated)."""
28
29  LOSS = "loss"
30  AUC = "auc"
31  AUC_PR = "auc_precision_recall"
32  CLASS_AUC = "auc/class%d"
33  CLASS_AUC_PR = "auc_precision_recall/class%d"
34  PREDICTION_MEAN = "labels/prediction_mean"
35  CLASS_PREDICTION_MEAN = "labels/prediction_mean/class%d"
36  CLASS_LOGITS_MEAN = "labels/logits_mean/class%d"
37  CLASS_PROBABILITY_MEAN = "labels/probability_mean/class%d"
38  LABEL_MEAN = "labels/actual_label_mean"
39  CLASS_LABEL_MEAN = "labels/actual_label_mean/class%d"
40  ACCURACY = "accuracy"
41  ACCURACY_BASELINE = "accuracy/baseline_label_mean"
42  ACCURACY_MEAN = "accuracy/threshold_%f_mean"
43  PRECISION_MEAN = "precision/positive_threshold_%f_mean"
44  RECALL_MEAN = "recall/positive_threshold_%f_mean"
45