-
Notifications
You must be signed in to change notification settings - Fork 284
Open
Labels
Description
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)