* Runs a single gradient update on a single batch of data. * * This method differs from `fit()` and `fitDataset()` in the following * regards: * - It operates on exactly one batch of data. * - It returns only the loss and metric values, instead of * returning the batch-by-b
(
x: Tensor|Tensor[]|{[inputName: string]: Tensor},
y: Tensor|Tensor[]|
{[inputName: string]: Tensor})
| 995 | * @doc {heading: 'Models', subheading: 'Classes'} |
| 996 | */ |
| 997 | override async trainOnBatch( |
| 998 | x: Tensor|Tensor[]|{[inputName: string]: Tensor}, |
| 999 | y: Tensor|Tensor[]| |
| 1000 | {[inputName: string]: Tensor}): Promise<number|number[]> { |
| 1001 | return this.model.trainOnBatch(x, y); |
| 1002 | } |
| 1003 | |
| 1004 | /* See parent class for JsDoc */ |
| 1005 | /** @nocollapse */ |
nothing calls this directly
no outgoing calls
no test coverage detected