tensorflow / tensorflow/privacy

Bolton DP is not running on Tensorflow 1.14.0

Open
#209 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2k
Forks
477
Avg merge
22h 12m
Merged PRs (30d)
1

Description

Runing this :
https://github.com/tensorflow/privacy/blob/master/tutorials/bolton_tutorial.py

Traceback (most recent call last):
File "/Users/shachatt1/Desktop/sharmi/books/My_book_responsible_ai/python_code/chapter4/privacy-master/tutorials/bolton_tutorial.py", line 18, in
from tensorflow_privacy.privacy.bolt_on import losses # pylint: disable=wrong-import-position
File "/opt/miniconda3/lib/python3.7/site-packages/tensorflow_privacy/init.py", line 30, in
from tensorflow_privacy import v1
File "/opt/miniconda3/lib/python3.7/site-packages/tensorflow_privacy/v1/init.py", line 32, in
from tensorflow_privacy.privacy.estimators.v1.dnn import DNNClassifier as DNNClassifierV1
File "/opt/miniconda3/lib/python3.7/site-packages/tensorflow_privacy/privacy/estimators/v1/dnn.py", line 19, in
from tensorflow_privacy.privacy.estimators.v1 import head as head_lib
File "/opt/miniconda3/lib/python3.7/site-packages/tensorflow_privacy/privacy/estimators/v1/head.py", line 23, in
from tensorflow_estimator.python.estimator import model_fn
File "/opt/miniconda3/lib/python3.7/site-packages/tensorflow_estimator/init.py", line 10, in
from tensorflow_estimator._api.v1 import estimator
File "/opt/miniconda3/lib/python3.7/site-packages/tensorflow_estimator/_api/v1/estimator/init.py", line 10, in
from tensorflow_estimator._api.v1.estimator import experimental
File "/opt/miniconda3/lib/python3.7/site-packages/tensorflow_estimator/_api/v1/estimator/experimental/init.py", line 10, in
from tensorflow_estimator.python.estimator.canned.dnn import dnn_logit_fn_builder
File "/opt/miniconda3/lib/python3.7/site-packages/tensorflow_estimator/python/estimator/canned/dnn.py", line 23, in
from tensorflow.python.feature_column import dense_features
ImportError: cannot import name 'dense_features' from 'tensorflow.python.feature_column' (/opt/miniconda3/lib/python3.7/site-packages/tensorflow/python/feature_column/init.py)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with tutorials/bolton_tutorial.py and reproduce the import failure using TensorFlow 1.14.0. Trace the imports through tensorflow_privacy/v1 and tensorflow_estimator, especially the missing dense_features symbol. Done means the Bolton tutorial starts successfully without this ImportError under the reported environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.