Open OrielResearchCure opened 5 years ago
I was able to make a progress and have most of the code running+ the tensorflow data validation package. the only issue that I have is with the rendering of the tensorflow-model-analysis which is installed by jupyter nbextension as following:
!jupyter nbextension enable --sys-prefix --py widgetsnbextension
Returns:
Enabling notebook extension jupyter-js-widgets/extension...
!jupyter nbextension install --py --symlink tensorflow_model_analysis --sys-prefix
Returns:
/usr/local/envs/py2env/lib/python2.7/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float
to np.floating
is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type
.
from ._conv import register_converters as _register_converters
/usr/local/envs/py2env/lib/python2.7/site-packages/scipy/spatial/init.py:96: ImportWarning: Not importing directory '/usr/local/envs/py2env/lib/python2.7/site-packages/scipy/spatial/qhull': missing init.py
from .qhull import *
/usr/local/envs/py2env/lib/python2.7/site-packages/scipy/optimize/_minimize.py:37: ImportWarning: Not importing directory '/usr/local/envs/py2env/lib/python2.7/site-packages/scipy/optimize/lbfgsb': missing init.py
from .lbfgsb import _minimize_lbfgsb
Installing /usr/local/envs/py2env/lib/python2.7/site-packages/tensorflow_model_analysis/static -> tfma_widget_js
Validating: OK
To initialize this nbextension in the browser every time the notebook (or other app) loads:
jupyter nbextension enable tensorflow_model_analysis --py --sys-prefix
!jupyter nbextension enable tensorflow_model_analysis --py --sys-prefix
Returns:
/usr/local/envs/py2env/lib/python2.7/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float
to np.floating
is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type
.
from ._conv import register_converters as _register_converters
/usr/local/envs/py2env/lib/python2.7/site-packages/scipy/spatial/init.py:96: ImportWarning: Not importing directory '/usr/local/envs/py2env/lib/python2.7/site-packages/scipy/spatial/qhull': missing init.py
from .qhull import *
/usr/local/envs/py2env/lib/python2.7/site-packages/scipy/optimize/_minimize.py:37: ImportWarning: Not importing directory '/usr/local/envs/py2env/lib/python2.7/site-packages/scipy/optimize/lbfgsb': missing init.py
from .lbfgsb import _minimize_lbfgsb
Enabling notebook extension tfma_widget_js/extension...
Please let me know how should I update these commands. Many thanks, eilalan
Hi all,
I am working on the Chicago taxi example (chicago_taxi_tfma_local_playground) : https://github.com/tensorflow/model-analysis/tree/master/examples/chicago_taxi
As a first step, I have converted the code to a colab notebook- made few adjustment and have it working here: https://colab.research.google.com/drive/1pAlfpPM0SYd7xVbqQzyDVDSiQudGWmKg
Using that as a reference for installation versions and others, I have started working on a datalab version for the code (this will be reference for my model code eventually)
I have attached the ipynb (renamed it to txt) from datalab and would appreciate if i could get help with executing the command:
train_stats = tfdv.generate_statistics_from_csv(data_location=os.path.join(TRAIN_DATA_DIR, 'data.csv'))
the error is:` AttributeErrorTraceback (most recent call last)