nemos.glm.GLM.solver_init_state#

property GLM.solver_init_state: None | Callable[[Any, Array, Array], NamedTuple]#

Provides the initialization function for the solver’s state.

This function is responsible for initializing the solver’s state, necessary for the start of the optimization process. It sets up initial values for parameters like gradients and step sizes based on the model configuration and input data.

Returns:

The function to initialize the state of the solver, if available; otherwise, None if the solver has not yet been instantiated.