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.
Check if all required methods are there
Check their signatures and make sure they have the same argument names. In __init__ only the required ones are checked.
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.