model-analysis
model-analysis copied to clipboard
Cannot read property 'SlicingMetricsModel' of undefined
System information
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow Model Analysis): Yes
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu
- TensorFlow Model Analysis installed from (source or binary): source
- TensorFlow Model Analysis version (use command below): 0.22.2
- Python version: 3.6.9
- Jupyter Notebook version: 6.0.3
-
Exact command to reproduce:
tfma.view.render_slicing_metrics(result)
Describe the problem
I'm running tfma inside a docker container to get around any issues with the tfma extension not being available in my conda environment. Everything looks good, I just can't display the interactive charts. When I call tfma.view.render_slicing_metrics(result)
, I get the following error in the browser console. Chrome version 83.0.4103.106.
Source code / logs

I get the same error, running locally. Occasionally if I hit some combination of page refreshes and runs of this command, the visualization will show up, but it is not reliable.
Chrome version 83.0.4103.116
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOS 10.15.5
- TensorFlow Model Analysis installed from (source or binary): source
- TensorFlow Model Analysis version (use command below): 0.22.2
- Python version: 3.7.2
- Jupyter Notebook version: 6.0.3
- Exact command to reproduce: tfma.view.render_slicing_metrics(result)
I get the same error when running locally. Chrome version 85.0.4183.83
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOS 10.14.6
- TensorFlow Model Analysis installed from (source or binary): binary from pypi
- TensorFlow Model Analysis version (use command below): 0.23
- Python version: 3.6.5
- Jupyter Notebook version: 6.1.3
- Exact command to reproduce: tfma.view.render_slicing_metrics(result)
I also experience the same issue. However, for me, opening the same notebook (without rerunning any cells or restarting the kernel) in a different tab or browser renders the plot.
Same problem for me. I am using Chrome (MAC) Version 85.0.4183.102 (Official Build) (64-bit)
And the extension status (running jupyter nbextension list
) looks fine:
notebook section jupyter-js-widgets/extension enabled - Validating: OK tensorflow_model_analysis/extension enabled - Validating: OK
I also tired open the same notebook in a different tab or browser, nothing works.
Same issue over here.
jupyter nbextension list
looks ok:
notebook section
jupyter-js-widgets/extension enabled
- Validating: OK
tensorflow_model_analysis/extension enabled
- Validating: OK