-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 and TFMA visualizations in KFP UI? #2283
Comments
@JakeTheWise here's the commit that removed those files causing the broken links, hopefully this can set you in the right direction. 86163ec#diff-ef180dd8899f69cbf7b44c78a23e042eL196-L221 |
Hey @JakeTheWise, I recently implemented support for Python Based Visualizations within KFP. This method of visualizing data allows for TFDV/TFMA and other Python visualization libraries to be easily used within the KFP UI without extensive knowledge of HTML or how to export visualizations. This might be the best option for your use case, you can checkout my post about them on Medium or the documentation within KFP here for details on how to get started. As a heads up, KFP needs to be at version 0.1.29 or later. Please let me know if you have any questions about the feature! |
Yes, that should be possible. It's just that the outputs need to be explicit now.
The
This repo is more up to date usually.
We're sorry about this. I'll create an issue to fix those.
BTW, Just because those files have been removed does not mean that those components should stop working. If they no longer work I'd consider that a bug that needs to be fixed. Do you see any visualizations working at all? Including the 1st-party components from this repo. |
Thanks for the help, everyone! Using the old commit provided by @andrewsmartin, I was able to make TFDV display properly in the KFP UI. However, I've only had partial success with TFMA. It displays incorrectly (the slice histograms don't display properly), and upon inspection it seems there is a CORS issue with a javascript file that TFMA uses. Here's the seemingly troublesome piece of HTML I'm rendering for the TFMA viz:
And here's the error I get in the browser console when inspecting the KFP UI:
I tried adding |
The source of the issue seems to be documented here tensorflow/model-analysis#10. Has anyone figured out how to resolve this issue? |
Hey @JakeTheWise, I investigated something similar in tensorflow/data-validation#80, where visualizations could not be rendered outside of a Jupyter Notebook generated environment. After a very quick look at the issue you provided it does not seem like the same approach can be provided. I will continue to investigate as I have time and keep you informed. |
/assign @jingzhang36 |
Two changes needed to support this better:
Users can use custom visualization as mentioned in tensorflow/model-analysis#10 (comment) now (but there's only one tfma version support). |
p0 issues solved |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it. |
Are there yaml component specifications that can do this already? Is AI Hub the only repo for pipelines/components? I don't know how to write the visual outputs/widgets from TFDV/TFMA to HTML for display in the KFP UI via writing to
mlpipeline-ui-metadata.json
as per the tutorial, and the links on that page to the example code are broken.The text was updated successfully, but these errors were encountered: