TensorFlow定義estimator

2018-09-28 15:09 更新

#版權(quán)所有2017 TensorFlow作者.版權(quán)所有.

#根據(jù)Apache許可證版本2.0(“許可證”)許可;

#除非符合許可證,否則您不得使用此文件.

#您可以獲得許可證的副本

#http://www.apache.org/licenses/LICENSE-2.0

#除非適用法律要求或書(shū)面同意軟件

根據(jù)許可證分發(fā)在“按原樣”基礎(chǔ)上,

#無(wú)明示或暗示的任何種類的保證或條件.

#查看有關(guān)權(quán)限的特定語(yǔ)言的許可證

許可證下的限制.

# =============================================== =============================

""估算器:用于處理模型的高級(jí)工具.""

from __future__ import absolute_import from __future__ import division from __future__ import print_function # pylint: disable=unused-import,line-too-long,wildcard-import from tensorflow.python.estimator.canned.dnn import DNNClassifier from tensorflow.python.estimator.canned.dnn import DNNRegressor from tensorflow.python.estimator.canned.dnn_linear_combined import DNNLinearCombinedClassifier from tensorflow.python.estimator.canned.dnn_linear_combined import DNNLinearCombinedRegressor from tensorflow.python.estimator.canned.linear import LinearClassifier from tensorflow.python.estimator.canned.linear import LinearRegressor from tensorflow.python.estimator.canned.parsing_utils import classifier_parse_example_spec from tensorflow.python.estimator.canned.parsing_utils import regressor_parse_example_spec from tensorflow.python.estimator.estimator import Estimator from tensorflow.python.estimator.export import export_lib as export from tensorflow.python.estimator.inputs import inputs from tensorflow.python.estimator.model_fn import EstimatorSpec from tensorflow.python.estimator.model_fn import ModeKeys from tensorflow.python.estimator.run_config import RunConfig from tensorflow.python.util.all_util import remove_undocumented # pylint: enable=unused-import,line-too-long,wildcard-import _allowed_symbols = [ 'DNNClassifier', 'DNNRegressor', 'DNNLinearCombinedClassifier', 'DNNLinearCombinedRegressor', 'LinearClassifier', 'LinearRegressor', 'classifier_parse_example_spec', 'regressor_parse_example_spec', 'inputs', 'export', 'Estimator', 'EstimatorSpec', 'ModeKeys', 'RunConfig', ] remove_undocumented(__name__, allowed_exception_list=_allowed_symbols)
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)