neuralogic.nn.optim packageο
Subpackagesο
Submodulesο
neuralogic.nn.optim.adam moduleο
neuralogic.nn.optim.optimizer moduleο
- class Optimizer(lr: float, lr_decay: LRDecay | None = None)[source]ο
Bases:
objectBase class for all optimizers. Optimizers are used to update the weights of the neural network during training.
- get_lr_decay() Any | None[source]ο
Initializes and returns the learning rate decay object.
- Returns:
The Java learning rate decay object, or None if no decay is set.
- Return type:
Any
- initialize() Any[source]ο
Initializes the Java representation of the optimizer.
- Returns:
The Java optimizer object.
- Return type:
Any
- property lr: floatο
Returns the current learning rate.
- Returns:
Current learning rate.
- Return type:
float
neuralogic.nn.optim.sgd moduleο
Module contentsο
- class Adam(lr: float = 0.001, betas: tuple[float, float] = (0.9, 0.999), eps: float = 1e-08, lr_decay: LRDecay | None = None)[source]ο
Bases:
OptimizerAdam optimizer. It implements the Adaptive Moment Estimation (Adam) algorithm.
- property betas: tuple[float, float]ο
- property eps: floatο
- class Optimizer(lr: float, lr_decay: LRDecay | None = None)[source]ο
Bases:
objectBase class for all optimizers. Optimizers are used to update the weights of the neural network during training.
- get_lr_decay() Any | None[source]ο
Initializes and returns the learning rate decay object.
- Returns:
The Java learning rate decay object, or None if no decay is set.
- Return type:
Any
- initialize() Any[source]ο
Initializes the Java representation of the optimizer.
- Returns:
The Java optimizer object.
- Return type:
Any
- property lr: floatο
Returns the current learning rate.
- Returns:
Current learning rate.
- Return type:
float