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"""High level API for learning (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 22@@BaseEstimator 23@@Estimator 24@@Trainable 25@@Evaluable 26@@KMeansClustering 27@@ModeKeys 28@@ModelFnOps 29@@MetricSpec 30@@PredictionKey 31@@DNNClassifier 32@@DNNEstimator 33@@DNNRegressor 34@@DNNLinearCombinedRegressor 35@@DNNLinearCombinedEstimator 36@@DNNLinearCombinedClassifier 37@@DynamicRnnEstimator 38@@LinearClassifier 39@@LinearEstimator 40@@LinearRegressor 41@@LogisticRegressor 42@@StateSavingRnnEstimator 43@@SVM 44@@SKCompat 45 46@@Head 47@@multi_class_head 48@@multi_label_head 49@@binary_svm_head 50@@regression_head 51@@poisson_regression_head 52@@multi_head 53@@no_op_train_fn 54 55@@Experiment 56@@ExportStrategy 57@@TaskType 58 59@@NanLossDuringTrainingError 60@@RunConfig 61@@evaluate 62@@infer 63@@run_feeds 64@@run_n 65@@train 66 67@@extract_dask_data 68@@extract_dask_labels 69@@extract_pandas_data 70@@extract_pandas_labels 71@@extract_pandas_matrix 72@@infer_real_valued_columns_from_input 73@@infer_real_valued_columns_from_input_fn 74@@read_batch_examples 75@@read_batch_features 76@@read_batch_record_features 77@@read_keyed_batch_examples 78@@read_keyed_batch_examples_shared_queue 79@@read_keyed_batch_features 80@@read_keyed_batch_features_shared_queue 81 82@@InputFnOps 83@@ProblemType 84@@build_parsing_serving_input_fn 85@@make_export_strategy 86""" 87 88from __future__ import absolute_import 89from __future__ import division 90from __future__ import print_function 91 92# pylint: disable=wildcard-import 93from tensorflow.contrib.learn.python.learn import * 94# pylint: enable=wildcard-import 95 96from tensorflow.contrib.learn.python.learn import learn_runner_lib as learn_runner 97 98from tensorflow.python.util.all_util import remove_undocumented 99 100_allowed_symbols = ['datasets', 'head', 'io', 'learn_runner', 'models', 101 'monitors', 'NotFittedError', 'ops', 'preprocessing', 102 'utils', 'graph_actions'] 103 104remove_undocumented(__name__, _allowed_symbols) 105