Skip to content

Commit

Permalink
docs(Classifier): enhanced the example in the API ref
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerdo committed Aug 10, 2022
1 parent 5405268 commit f3c3186
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aucmedi/neural_network/architectures/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,17 @@ class Classifier:
```python
# Recommended way (automatic creation in NeuralNetwork)
model = NeuralNetwork(n_labels=20, channels=3, batch_queue_size=1,
input_shape=(32, 32), activation_output="sigmoid",
fcl_dropout=False)
input_shape=(32, 32), activation_output="sigmoid",
fcl_dropout=False)
# Manual way
from aucmedi.neural_network.architectures import Classifier
from aucmedi.neural_network.architectures.image import Vanilla
classification_head = Classifier(n_labels=20, fcl_dropout=True,
classification_head = Classifier(n_labels=20, fcl_dropout=False,
activation_output="sigmoid")
arch = Vanilla(classification_head, channels=3,
input_shape=(32, 32))
input_shape=(32, 32))
```
??? example "Example: How to integrate metadata in AUCMEDI?"
Expand Down

0 comments on commit f3c3186

Please sign in to comment.