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

NA #360

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

NA #360

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions fairness_indicators/example_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import tempfile
import tensorflow.compat.v1 as tf
from tensorflow.compat.v1 import estimator as tf_estimator
import tensorflow_hub as hub
from tensorflow.python.feature_column import feature_column_v2 # pylint: disable=g-deprecated-tf-checker
import tensorflow_model_analysis as tfma
from tensorflow_model_analysis.addons.fairness.post_export_metrics import fairness_indicators # pylint: disable=unused-import

Expand Down Expand Up @@ -71,8 +71,9 @@ def parse_function(serialized):
filenames=[train_tf_file]).map(parse_function).batch(512)
return train_dataset

text_embedding_column = hub.text_embedding_column(
key=text_feature, module_spec=module_spec)
text_embedding_column = feature_column_v2.text_embedding_column(
key=text_feature, module_spec=module_spec
)

classifier = tf_estimator.DNNClassifier(
hidden_units=[500, 100],
Expand Down
Loading