SKCompat
Defined in tensorflow/contrib/learn/python/learn/estimators/estimator.py.
Scikit learn wrapper for TensorFlow Learn Estimator.
THIS CLASS IS DEPRECATED. See contrib/learn/README.md for general migration instructions.
__init____init__(estimator)
DEPRECATED FUNCTION
THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Please switch to the Estimator interface.
fitfit(
x,
y,
batch_size=128,
steps=None,
max_steps=None,
monitors=None
)
get_paramsget_params(deep=True)
Get parameters for this estimator.
deep: boolean, optional
If True, will return the parameters for this estimator and contained subobjects that are estimators.
params: mapping of string to any Parameter names mapped to their values.predictpredict(
x,
batch_size=128,
outputs=None
)
scorescore(
x,
y,
batch_size=128,
steps=None,
metrics=None,
name=None
)
set_paramsset_params(**params)
Set the parameters of this estimator.
The method works on simple estimators as well as on nested objects (such as pipelines). The former have parameters of the form <component>__<parameter> so that it's possible to update each component of a nested object.
**params: Parameters.self
ValueError: If params contain invalid names.
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/learn/SKCompat