tf.contrib.learn.DNNClassifier.predict_proba()

tf.contrib.learn.DNNClassifier.predict_proba(*args, **kwargs)

Returns prediction probabilities for given features. (deprecated arguments)

SOME ARGUMENTS ARE DEPRECATED. They will be removed after 2016-09-15. Instructions for updating: The default behavior of predict() is changing. The default value for as_iterable will change to True, and then the flag will be removed altogether. The behavior of this flag is described below.

Args:
  x: features.
  input_fn: Input function. If set, x and y must be None.
  batch_size: Override default batch size.
  as_iterable: If True, return an iterable which keeps yielding predictions
    for each example until inputs are exhausted. Note: The inputs must
    terminate if you want the iterable to terminate (e.g. be sure to pass
    num_epochs=1 if you are using something like read_batch_features).

Returns:
  Numpy array of predicted probabilities (or an iterable of predicted
  probabilities if as_iterable is True).
doc_TensorFlow
2016-10-14 13:05:34
Comments
Leave a Comment

Please login to continue.