Minimize Method
Functions
minimize(self, model, X_train, Y_train, loss, batch_size, metrics)
Minimize the loss function using mini-batch gradient descent.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model |
Sequential
|
The neural network model. |
required |
X_train |
ndarray
|
Input training data. |
required |
Y_train |
ndarray
|
True labels for training data. |
required |
loss |
str
|
The loss function to use. |
required |
batch_size |
int
|
The size of each mini-batch. |
required |
metrics |
list
|
List of metrics to compute during training. |
required |
Example
Note
This function performs mini-batch gradient descent, updating the model parameters to minimize the loss function. It uses a progress bar to show training progress and computes specified metrics.