tfx
tfx copied to clipboard
statisticsgen visualization does not work in jupyter under container
Hello;
I am running Chicago taxi TFX tutorial on a docker image I built. The image is based on jupyter/scipy-notebook:latest
and I had installed packages with requirements.txt.
When I run the cell
`%%skip_for_export
context.show(statistics_gen.outputs['statistics'])`
the output is simply a blank box like this:
Does this mean tfx statisticgen visualization is currently imcompatible with docker container? Are we only suppose to run it under windows or linux?
Everything else runs fine in container though.
Thanks in advance, any help is appreciated.
some information: I ran it on google colab and things work fine. I ran it locally (no docker), visualization tool is blank. I rank it on different browsers, same problem. I connect docker jupyter server to visual studio code, same problem (localhost:8888/?token=) By mistake I connect to hostname:8888 and it works in vs code. Any thoughts?
i am facing the same issue, but this happens irregularly when i run the same code. any ideas?
@IshootLaser,
TFX StatisticsGen component writes the statistics protocol buffer in a TFRecord file. You can visualize the statistics in a Jupyter notebook as follows:
import tensorflow_data_validation as tfdv
train_stats = tfdv.generate_statistics_from_csv(data_location=TRAIN_DATA)
tfdv.visualize_statistics(train_stats)
You can refer documentation for more details. Thank you!
One thing to note is that the visualization works in Jupyter Notebooks, and IIUC it doesn't work so well in Jupyter Lab (although I think there is a workaround).
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!
Are you satisfied with the resolution of your issue (Closed)? Yes No