-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Updated Large-scale multi-label text classification example for Keras v3 #1779
base: master
Are you sure you want to change the base?
Updated Large-scale multi-label text classification example for Keras v3 #1779
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
This example will need more changes, for instance there are tf.keras
references remaining. I think the whole example can be made backend-agnostic (with preprocessing in tf.data).
examples/nlp/.DS_Store
Please revert this file.
9659c55
to
2d76b3c
Compare
@fchollet |
@@ -30,8 +30,9 @@ | |||
## Imports |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update Last modified
above and add yourself to the authors list?
@@ -145,7 +146,7 @@ | |||
""" | |||
|
|||
terms = tf.ragged.constant(train_df["terms"].values) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it work to use padding here instead of ragged tensors?
https://keras.io/api/ops/numpy/#pad-function
No description provided.