Skip to content

Conversation

jperk224
Copy link
Contributor

As currently written, the one-hot encoding step leaves the user with boolean dummy values that cause errors later in the tutorial as presently written, when passing the np.array() argument to Normalization.adapt(). The values need to be cast to a numerical type (e.g., int) either at the one-hot encoding step or the adapt() step.

As currently written, the one-hot encoding step leaves the user with boolean dummy values that cause errors later in the tutorial as presently written, when passing the np.array() argument to Normalization.adapt().  The values need to be cast to a numerical type (e.g., int) either at the one-hot encoding step or the adapt() step.
@jperk224 jperk224 requested a review from a team as a code owner June 23, 2024 04:08
Copy link

Preview

Preview and run these notebook edits with Google Colab: Rendered notebook diffs available on ReviewNB.com.

Format and style

Use the TensorFlow docs notebook tools to format for consistent source diffs and lint for style:
$ python3 -m pip install -U --user git+https://github.com/tensorflow/docs

$ python3 -m tensorflow_docs.tools.nbfmt notebook.ipynb
$ python3 -m tensorflow_docs.tools.nblint --arg=repo:tensorflow/docs notebook.ipynb
If commits are added to the pull request, synchronize your local branch: git pull origin patch-1

Change the verbiage slightly to include
reference to the Tensor docs and note
the nature of the object needing uniform
data types.
@8bitmp3
Copy link
Contributor

8bitmp3 commented Oct 11, 2024

@MarkDaoust MarkDaoust added the ready to pull Start merge process label Oct 11, 2024
Copy link
Member

@MarkDaoust MarkDaoust left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@copybara-service copybara-service bot merged commit d8930ca into tensorflow:master Oct 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants