nemos.solvers.validate_solver_class#

nemos.solvers.validate_solver_class(solver_class, test_ridge, loss_has_aux)[source]#

Validate required methods against AbstractSolver and optionally run a quick ridge regression.

  1. Check if all required methods are there

  2. Check their signatures and make sure they have the same argument names. In __init__ only the required ones are checked.

  3. If test_ridge is True, run a ridge regression toy problem to see if the solver actually works. If loss_has_aux is True, the ridge loss will carry an aux variable, otherwise it’s a scalar loss value.

Return type:

None

Parameters: