-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove abc #41
Remove abc #41
Conversation
metodj
commented
Oct 12, 2021
- removed all ABC stuff (abstract methods etc.)
- refactored baselaplace.py -> BaseLaplace now has two subclasses, ParametricLaplace and FunctionalLaplace (this will greatly help with bringing in the GP inference)
It looks good to me and since tests pass I don’t see a problem. However, I would suggest to make the raised errors a bit more verbose. For example, if an interface does not implement gradients, this could be explicitly stated as the cause of the problem with a message like “class XY does not provide gradients.” Or something similar. What do you think? |
Sure, will make raised As an aside, the proposed refactor is backward-compatible in a sense that |
I created a dummy class in
When using simply
the following is raised,
If you prefer the second option, I can change all |
Also, in the |
Okay, we can leave the plain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late reply, I was pretty busy this week. Looks good from my side, nice work!
One nitpick: the string style is inconsistent in some places, i.e. " "
instead of our convention ' '
. I'll comment on some lines where I have seen it (haven't checked everything carefully though).
Thanks for pointing out the convention for the string style, wasn't aware of it before |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks!
Thanks both! |