Skip to content

Many errors in the Example of tf.feature_column.categorical_column_with_identity #46203

Closed

Description

@rakeshmothukuru1

URL(s) with the issue:

Please provide a link to the documentation entry, for example:
https://www.tensorflow.org/api_docs/python/tf/feature_column/categorical_column_with_identity#linear_model

Description of issue (what needs changing):

When running the Example Code, it is resulting in the errors mentioned below:

NameError: name 'categorical_column_with_identity' is not defined

NameError: name 'linear_model' is not defined

ValueError: All feature_columns must be FeatureColumn instances. Given: Ellipsis

NameError: name 'input_layer' is not defined

The code in the documentation should be modified to fix all the above errors.

Please find the Github Gist demonstrating the errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

comp:apistype:docs-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions