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

Incorporating TFMA #21

Open
sayakpaul opened this issue Nov 1, 2021 · 2 comments
Open

Incorporating TFMA #21

sayakpaul opened this issue Nov 1, 2021 · 2 comments

Comments

@sayakpaul
Copy link
Collaborator

@rcrowe-google

I have been thinking about ways to incorporate TFMA for the evaluation part.

Currently, we run batch prediction in order to gather the results, and then we compare them against the ground truth to check if the end accuracy is above a threshold. This is implemented in this notebook. We run the batch prediction service because we think it might be common for real-world purposes too whereupon the arrival of a bulk of data we perform batch inference, collect results, and then analyze them.

We understand what we are doing with the PerformanceEvaluator component could be delegated to TFMA but given batch prediction could be an important component of the workflow, where TFMA should be incorporated?

Cc: @deep-diver

@rcrowe-google
Copy link

You can feed your batch predictions to Evaluator and avoid having Evaluator regenerate the predictions, which will allow for much deeper analysis of the model performance. There are two different ways of doing that here:

https://www.tensorflow.org/tfx/model_analysis/faq?hl=en-us#how_do_i_setup_tfma_to_work_with_pre-calculated_ie_model-agnostic_predictions_tfrecord_and_tfexample

https://www.tensorflow.org/tfx/model_analysis/faq?hl=en-us#how_do_i_setup_tfma_to_work_with_pre-calculated_ie_model-agnostic_predictions_pddataframe

@deep-diver
Copy link
Owner

So we could convert prediction results into pandas DataFrame, an run TFMA on that I guess?

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

3 participants