Render_plot is failing
siddharthroy opened this issue · comments
System information
- I have used stock example script provided in TensorFlow Model Analysis: https://github.com/tensorflow/tfx/blob/master/docs/tutorials/model_analysis/tfma_basic.ipynb
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
- TensorFlow Model Analysis installed from (source or binary): binary using pip install
- TensorFlow Model Analysis version (use command below): 0.41.0, 0.42.0, 0.43.0, 0.44.0 (tried all versions 1-by-1)
- Python version: 3.9
- Jupyter Notebook version: tried with jupyterlab==3.5.3 as well as 4.0.3
- Exact command to reproduce:
tfma.view.render_plot(
eval_result,
tfma.SlicingSpec(feature_values={'trip_start_hour': '1'}))
Describe the problem
No plot is being rendered. It fails with below error:
I tried to run the tutorial notebook on colab as well, but very first step of TFMA installation itself failed, so I couldn't proceed to generate this error in colab.
Please help. Thanks!!!
I am able to run the render_plot()
successfully in Colab Environment. Ref: screenshot below
TFMA installation in colab failed in your case because of Python version mismatch between Python 3.10 installed in colab and python supported version by TFMA. There is a workaround to install TFMA in colab. You can refer to attached gist.
The error you are facing looks like is because of Jupyter extensions missing. Please make sure Jupyter extensions are installed as shown in tutorial and let us know if still you are facing issues. Thank you!
Closing this due to inactivity. Please take a look into the answers provided above, feel free to reopen and post your comments(if you still have queries on this). Thank you!