Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apply tft.TFTransformOutput.transformed_feature_spec to tf.data #66

Closed
Debasish-Das-CK opened this issue Jun 14, 2018 · 3 comments
Closed

Comments

@Debasish-Das-CK
Copy link
Contributor

dataset = tf.contrib.data.make_batched_features_dataset(
file_pattern=transformed_examples,
batch_size=batch_size,
features=tf_transform_output.transformed_feature_spec(),
reader=tf.data.TFRecordDataset,
shuffle=True)
tft examples uses a contrib API which is not official. Can I use the following ?

dataset = tf.data.TFRecordDataset(filenames_list)
dataset = dataset.map(_parse_proto)
dataset.map(tf_transform_output.transformed_feature_spec())

@Debasish-Das-CK
Copy link
Contributor Author

also I guess examples need to be updated with the official API...should I push a PR ?

@ravwojdyla
Copy link
Contributor

ravwojdyla commented Jun 25, 2018

@Debasish-Das-CK tf.contrib.data.make_batched_features_dataset is fully supported and recommended see https://www.youtube.com/watch?v=uIcqeP7MFH0.

@Debasish-Das-CK
Copy link
Contributor Author

sounds good @ravwojdyla

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants