-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Keras basic text classification tutorial: removed +1 from embeddings … #2256
Keras basic text classification tutorial: removed +1 from embeddings … #2256
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
PreviewPreview and run these notebook edits with Google Colab: Rendered notebook diffs available on ReviewNB.com.Format and styleUse 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/docsIf commits are added to the pull request, synchronize your local branch: git pull origin vaharoni/text-classification-fix
|
@vaharoni Thanks again for the PR. Can you check the |
I have already signed the CLA, and this was picked up correctly on a different PR I made. When I visit the CLA page, it says "It looks like you've already signed this CLA. If you'd like to edit your contact information, you may do so below." I clicked on "I agree" again nevertheless. Let me know if you need me to do anything else. |
@google-cla try again |
Sorry about the delay, we should be good to go now. |
…input dimensions
In the Tutorials > Beginner > ML basics with Keras > Basic text classification, there is the following code:
I believe the +1 in
max_features + 1
is unnecessary, as the vocabulary ofTextVectorization
layers already includes the padding and OOV tokens.