wideresnet
WideResidualNetwork
¶
Creates a Wide Residual Network with specified parameters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
input_shape |
Tuple[int, int, int]
|
The size of the input tensor (height, width, channels). |
required |
depth |
int
|
Depth of the network. Compute N = (n - 4) / 6. For a depth of 16, n = 16, N = (16 - 4) / 6 = 2 For a depth of 28, n = 28, N = (28 - 4) / 6 = 4 For a depth of 40, n = 40, N = (40 - 4) / 6 = 6 |
28
|
widen_factor |
int
|
Width of the network. |
10
|
dropout |
float
|
Adds dropout if value is greater than 0.0. |
0.0
|
classes |
int
|
The number of outputs the model should generate. |
10
|
activation |
Optional[str]
|
activation function for last dense layer. |
'softmax'
|
Returns:
Type | Description |
---|---|
Model
|
A Keras Model. |
Raises:
Type | Description |
---|---|
ValueError
|
If (depth - 4) is not divisible by 6. |