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

Cannot read property 'SlicingMetricsModel' of undefined

Open schmidt-jake opened this issue 4 years ago • 5 comments

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

Screen Shot 2020-06-28 at 7 01 57 PM

schmidt-jake avatar Jun 29 '20 00:06 schmidt-jake

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)

catherinenelson1 avatar Jul 15 '20 03:07 catherinenelson1

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)

aadithya93 avatar Sep 08 '20 21:09 aadithya93

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.

dabrinkofabreakthrough avatar Sep 18 '20 13:09 dabrinkofabreakthrough

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.

cao-lele avatar Sep 19 '20 23:09 cao-lele

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

anenbergb avatar Nov 01 '20 23:11 anenbergb