Skip to content

Missing npm package for v0.47.1 #511

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

Open
dante-lee opened this issue Jan 24, 2025 · 1 comment
Open

Missing npm package for v0.47.1 #511

dante-lee opened this issue Jan 24, 2025 · 1 comment
Assignees

Comments

@dante-lee
Copy link

Details

  • There seems no npm package for tensorflow_model_analysis==0.47.1(link)
  • Currently we make HTML file of evaluation result with ipywidgets package(see below code)
  • If we run below code with tensorflow_model_analysis==0.47.1 and then open that html with browser(using Chrome & Safari), we get error something like this

    cannot find https://unpkg.com/tensorflow_model_analysis@0.47.1/dist/index.js

  • I think it is caused by missing npm package for 0.47.1
  • Can you update npm package for 0.47.1(Cannot use 0.47.0 or older version since we use TFX 1.16 and it requires tensorflow_model_analysis >= 0.47.0 and 0.47.0 has circular import error)

Code for html

import tensorflow_model_analysis as tfma
from ipywidgets.embed import embed_minimal_html

slicing_specs = ...
eval_result = tfma.load_eval_result(...)
metric_views = []
for slicing_spec in slicing_specs:
    metric_views.append(tfma.view.render_slicing_metrics(eval_result, slicing_spec=slicing_spec))

embed_minimal_html("result.html", metric_views)
@janasangeetha janasangeetha self-assigned this May 6, 2025
@janasangeetha
Copy link

Hey @dante-lee
Sorry for addressing the issue late. Thank you for bringing this to our attention. We will work on this and keep you updated.
Thank you!

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