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

tfdv.validate_tensor_examples()? #106

Open
schmidt-jake opened this issue Jan 30, 2020 · 4 comments
Open

tfdv.validate_tensor_examples()? #106

schmidt-jake opened this issue Jan 30, 2020 · 4 comments

Comments

@schmidt-jake
Copy link

schmidt-jake commented Jan 30, 2020

I think it would be nice to have a top-level function to check for anomalies in serving data. It could be integrated into serving_input_receiver_fn. It doesn't make sense to have to write serving data to tfrecords just to make use of tfdv.generate_statistics_from_tfrecord.

@rmothukuru rmothukuru self-assigned this Jan 31, 2020
@rmothukuru
Copy link

@JakeTheWise,
We currently, can check if Serving Data has Anomalies using the below code:

serving_stats = tfdv.generate_statistics_from_tfrecord(data_location=serving_data_path)
serving_anomalies = tfdv.validate_statistics(serving_stats, schema)

For more information, please refer this TFDV Page.

Please let me know if this is what you are looking for, or if your proposal is different. Thanks!

@schmidt-jake
Copy link
Author

schmidt-jake commented Jan 31, 2020

@rmothukuru Yes I was aware of generate_statistics_from_tfrecord (and I'll update the original post). Why do I need to write serving data to tfrecords just to check for anomalies?

@caveness
Copy link
Collaborator

Hi Jake -- Are you looking to validate your serving examples one at a time?

@schmidt-jake
Copy link
Author

In the limit, yes. Serving examples could come in one at a time, or in batches. Thus the idea to have a tensor-based example validator, as the serving environment (tensorflow model server) / model export signature function will receive examples as (dictionaries of) tensor objects.

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

No branches or pull requests

3 participants