contrib.layers.parse_feature_columns_from_sequence_examples
tf.contrib.layers.parse_feature_columns_from_sequence_examples
tf.contrib.layers.parse_feature_columns_from_sequence_examples
parse_feature_columns_from_sequence_examples( serialized, context_feature_columns, sequence_feature_columns, name=None, example_name=None )
Defined in tensorflow/contrib/layers/python/layers/feature_column_ops.py
.
See the guide: Layers (contrib) > Feature columns
Parses tf.SequenceExamples to extract tensors for given FeatureColumn
s.
Args:
-
serialized
: A scalar (0-D Tensor) of type string, a single serializedSequenceExample
proto. -
context_feature_columns
: An iterable containing the feature columns for context features. All items should be instances of classes derived from_FeatureColumn
. Can beNone
. -
sequence_feature_columns
: An iterable containing the feature columns for sequence features. All items should be instances of classes derived from_FeatureColumn
. Can beNone
. -
name
: A name for this operation (optional). -
example_name
: A scalar (0-D Tensor) of type string (optional), the names of the serialized proto.
Returns:
A tuple consisting of: context_features
: a dict mapping FeatureColumns
from
context_feature_columns
to their parsed Tensors
/SparseTensor
s. sequence_features
: a dict mapping FeatureColumns
from sequence_feature_columns
to their parsed Tensors
/SparseTensor
s.
© 2017 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/layers/parse_feature_columns_from_sequence_examples