build
PythonConstruct an untrained MiniResNet-v1 classifier for NHWC spectrogram patches.
build( params: MiniResNetV1Params, input_shape: tuple[int | None, ...], *, batch_size: int | None = None, name: str | None = None,) -> keras.ModelConstruct an untrained MiniResNet-v1 classifier for NHWC spectrogram patches.
Hydration is explicit: model.load_weights(checkpoint_path). Only matching architecture, input
dimensions and class count can reuse a checkpoint. This function does not read files or alter global
settings.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
params | MiniResNetV1Params | Required | Model parameters; ``num_classes`` is required. |
input_shape | tuple[int | None, ...] | Required | ``(height, width, channels)``; flatten pooling needs fixed spatial dimensions. |
batch_size | int | None | None | Static batch size; None for a dynamic batch. |
name | str | None | None | Model name; the family when None. |
Returns
| Type | Description |
|---|---|
keras.Model | keras.Model: The model, named ``miniresnet`` unless ``name`` is given. |