Skip to content

Commit

Permalink
[#20144] updated documentation for DenseNet, Xception, and ResNet to …
Browse files Browse the repository at this point in the history
…reflect 1000 as default classes value (#20223)
  • Loading branch information
joehiggi1758 authored Sep 6, 2024
1 parent efec341 commit cb6ece3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion keras/src/applications/densenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def DenseNet(
be applied.
classes: optional number of classes to classify images
into, only to be specified if `include_top` is `True`, and
if no `weights` argument is specified.
if no `weights` argument is specified. Defaults to `1000`.
classifier_activation: A `str` or callable.
The activation function to use
on the "top" layer. Ignored unless `include_top=True`. Set
Expand Down
2 changes: 1 addition & 1 deletion keras/src/applications/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ def decode_predictions(preds, top=5):
- `max` means that global max pooling will be applied.
classes: optional number of classes to classify images into, only to be
specified if `include_top` is `True`, and if no `weights` argument is
specified.
specified. Defaults to `1000`.
classifier_activation: A `str` or callable. The activation function to
use on the "top" layer. Ignored unless `include_top=True`. Set
`classifier_activation=None` to return the logits of the "top" layer.
Expand Down
2 changes: 1 addition & 1 deletion keras/src/applications/xception.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def Xception(
be applied.
classes: optional number of classes to classify images
into, only to be specified if `include_top` is `True`, and
if no `weights` argument is specified.
if no `weights` argument is specified. Defaults to `1000`.
classifier_activation: A `str` or callable. The activation function to
use on the "top" layer. Ignored unless `include_top=True`. Set
`classifier_activation=None` to return the logits of the "top"
Expand Down

0 comments on commit cb6ece3

Please sign in to comment.