aleximmer / Laplace

Laplace approximations for Deep Learning.
https://aleximmer.github.io/Laplace
MIT License
458 stars 71 forks source link

Make try-except statement in `_gridsearch` more specific #157

Closed runame closed 3 months ago

runame commented 6 months ago

Currently, if there is, e.g., any RuntimeError in the loss, _gridsearch will silently fail and just return the boundary value of the grid; see here. One example for this is when the loss function is not appropriate for the setting.

wiseodd commented 5 months ago

@runame will this be fixed by #156, which has been addressed? Or, do you have another approach in mind?