Skip to content

Conversation

mattdangerw
Copy link
Member

This reworks the full set of bert models and preprocessing layers for consistency, and in particular, progressive disclosure of complexity.

In our example blocks, we will always lead with the simplest usages (e.g. from_preset()), and show more complex usages lower down.

Fixes #688 (I will open up contributed issues for other models when this looks ready)

@mattdangerw mattdangerw changed the title Improve bert docstrings Rework bert docstrings for progressive disclosure of complexity Mar 13, 2023
@mattdangerw mattdangerw requested a review from jbischof March 13, 2023 22:53
@mattdangerw mattdangerw marked this pull request as ready for review March 13, 2023 22:53
Copy link
Contributor

@jbischof jbischof left a comment

Choose a reason for hiding this comment

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

Seems very nice, thank you!

I wish there were a more automated way to generate these given that the entropy between model types is low, but hopefully our community can help us scale this if not.

This reworks the full set of bert models and preprocessing layers for
consistency, and in particular, progressive disclosure of complexity.

In our example blocks, we will always lead with the simplest usages
(e.g. from_preset()), and show more complex usages lower down.
@mattdangerw mattdangerw force-pushed the bert-docstring-rework branch from a86b44c to 5121a58 Compare March 17, 2023 00:08
@mattdangerw mattdangerw merged commit 7ed1faf into keras-team:master Mar 17, 2023
kanpuriyanawab pushed a commit to kanpuriyanawab/keras-nlp that referenced this pull request Mar 26, 2023
This reworks the full set of bert models and preprocessing layers for
consistency, and in particular, progressive disclosure of complexity.

In our example blocks, we will always lead with the simplest usages
(e.g. from_preset()), and show more complex usages lower down.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Audit our keras.models class docstrings after base class additions
2 participants