lava-optimization icon indicating copy to clipboard operation
lava-optimization copied to clipboard

Input validation for solver-related parameters

Open AlessandroPierro opened this issue 2 years ago • 2 comments

User Story

As a developer/user, I want to be warned if I use wrong/non-existent parameters when configuring the solver.

I'm submitting a ...

  • [x] feature request

Condition of satisfaction

  • SolverConfig checks parameters types and for invalid combinations (e.g., probe time/energy on CPU backend)
  • SolverConfig checks hyperparameters existence, type consistency and domain

AlessandroPierro avatar Dec 09 '22 10:12 AlessandroPierro

These should not only be updated on the tests, the solver needs to also assert only valid fields for hyperparameter are allowed

GaboFGuerra avatar Jan 12 '23 17:01 GaboFGuerra

These should not only be updated on the tests, the solver needs to also assert only valid fields for hyperparameter are allowed

Agree, we need to design a system to do that since different neuron models accept different hyperparameters.

AlessandroPierro avatar Jan 12 '23 18:01 AlessandroPierro