Skip to content
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

Cannot read property 'SlicingMetricsModel' of undefined #72

Open
schmidt-jake opened this issue Jun 29, 2020 · 5 comments
Open

Cannot read property 'SlicingMetricsModel' of undefined #72

schmidt-jake opened this issue Jun 29, 2020 · 5 comments

Comments

@schmidt-jake
Copy link

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

@catherinenelson1
Copy link

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)

@aadithya93
Copy link

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)

@dabrinkofabreakthrough
Copy link

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.

@cao-lele
Copy link

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.

@anenbergb
Copy link

anenbergb commented Nov 1, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants