model-analysis icon indicating copy to clipboard operation
model-analysis copied to clipboard

Missing npm package for v0.47.1

Open dante-lee opened this issue 11 months ago • 0 comments

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/[email protected]/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)

dante-lee avatar Jan 24 '25 07:01 dante-lee