W3cubDocs

/TensorFlow Python

tf.contrib.learn.extract_dask_labels

tf.contrib.learn.extract_dask_labels(labels)

Defined in tensorflow/contrib/learn/python/learn/learn_io/dask_io.py.

See the guide: Learn (contrib) > Input processing

Extract data from dask.Series or dask.DataFrame for labels. (deprecated)

THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Please feed input to tf.data to support dask.

Given a distributed dask.DataFrame or dask.Series containing exactly one column or name, this operation returns a single dask.DataFrame or dask.Series that can be iterated over.

Args:

  • labels: A distributed dask.DataFrame or dask.Series with exactly one column or name.

Returns:

A dask.DataFrame or dask.Series that can be iterated over. If the supplied argument is neither a dask.DataFrame nor a dask.Series this operation returns it without modification.

Raises:

  • ValueError: If the supplied dask.DataFrame contains more than one column or the supplied dask.Series contains more than one name.

© 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/extract_dask_labels