SGD Class
Stochastic Gradient Descent (SGD) optimizer.
This class implements the SGD optimization algorithm.
Attributes:
| Name | Type | Description |
|---|---|---|
learning_rate |
float
|
The learning rate for parameter updates. |
Methods:
| Name | Description |
|---|---|
minimize_wrapper |
A method to perform training over multiple epochs. |
Example
Source code in microkeras/optimizers/sgd.py
Functions
__init__(learning_rate=0.01)
Initialize the SGD optimizer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
learning_rate |
float
|
The learning rate to use for parameter updates. Default is 0.01. |
0.01
|