function
build
PythonConstruct an untrained TimePPG regressor with one linear output.
build( params: TimePPGParams, input_shape: tuple[int | None, ...], *, batch_size: int | None = None, name: str | None = None,) -> keras.ModelConstruct an untrained TimePPG regressor with one linear output.
The input is (time, channels) with a known time length that survives the 64x downsampling. The
flattened features are channel-major, matching the upstream PyTorch layout.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
params | TimePPGParams | Required | Model parameters. |
input_shape | tuple[int | None, ...] | Required | ``(time, channels)``, both known, time at least 64. |
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 ``timeppg`` unless ``name`` is given. |