build
PythonConstruct an untrained CorNET regressor with one linear output.
build( params: CorNetParams, input_shape: tuple[int | None, ...], *, batch_size: int | None = None, name: str | None = None,) -> keras.ModelConstruct an untrained CorNET regressor with one linear output.
Each convolution stage is Conv1D (valid, stride 1), batch normalization, ReLU, max pooling and dropout, following Fig. 6; the paper’s text places batch normalization after ReLU instead. Stride and padding are not stated and are inferred from Table III’s MAC counts. Every LSTM but the last returns its sequence.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
params | CorNetParams | Required | Model parameters. |
input_shape | tuple[int | None, ...] | Required | ``(time, channels)``, both known. |
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 ``cornet`` unless ``name`` is given. |