finol.optimization_layer.OptimizerSelector¶
- class finol.optimization_layer.OptimizerSelector(model)[原始碼]¶
Class to select optimizer for portfolio selection.
Methods
select_optimizer([sampled_lr, sampled_optimizer])Selects an optimizer based on the configuration.
- select_optimizer(sampled_lr=None, sampled_optimizer=None)[原始碼]¶
Selects an optimizer based on the configuration.
- 參數:
sampled_lr (Optional[Dict[str, Any]]) – Sampled learning rate or None. Required only when optimizing the learning rate selection.
sampled_optimizer (Optional[Dict[str, Any]]) – Sampled optimizer or None. Required only when optimizing the optimizer selection.
- 回傳:
The selected optimizer for the model.
- 引發:
ValueError – If the optimizer name is invalid.
- 回傳型別:
object