• 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
16"""Constants regarding Estimators (deprecated).
17
18This module and all its submodules are deprecated. See
19[contrib/learn/README.md](https://www.tensorflow.org/code/tensorflow/contrib/learn/README.md)
20for migration instructions.
21"""
22from __future__ import absolute_import
23from __future__ import division
24from __future__ import print_function
25
26
27class ProblemType(object):
28  """Enum-like values for the type of problem that the model solves.
29
30  THIS CLASS IS DEPRECATED.
31
32  These values are used when exporting the model to produce the appropriate
33  signature function for serving.
34
35  The following values are supported:
36    UNSPECIFIED: Produces a predict signature_fn.
37    CLASSIFICATION: Produces a classify signature_fn.
38    LINEAR_REGRESSION: Produces a regression signature_fn.
39    LOGISTIC_REGRESSION: Produces a classify signature_fn.
40  """
41  UNSPECIFIED = 0
42  CLASSIFICATION = 1
43  LINEAR_REGRESSION = 2
44  LOGISTIC_REGRESSION = 3
45
46
47# CollectionDef key for the input feature keys.
48# TODO(b/34388557): This is a stopgap; please follow the bug to learn of changes
49COLLECTION_DEF_KEY_FOR_INPUT_FEATURE_KEYS = "input_feature_keys"
50