docs icon indicating copy to clipboard operation
docs copied to clipboard

Update regression.ipynb to explicitly cast one-hot encoding values

Open jperk224 opened this issue 1 year ago • 1 comments

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 avatar Jun 23 '24 04:06 jperk224

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

github-actions[bot] avatar Jun 23 '24 04:06 github-actions[bot]

@MarkDaoust @markmcd @shilpakancharla PTAL

8bitmp3 avatar Oct 11 '24 11:10 8bitmp3