-
Notifications
You must be signed in to change notification settings - Fork 38
Add MOInputHeterotopic
type & helpers
#393
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
base: master
Are you sure you want to change the base?
Add MOInputHeterotopic
type & helpers
#393
Conversation
Codecov Report
@@ Coverage Diff @@
## master #393 +/- ##
==========================================
- Coverage 89.23% 89.14% -0.09%
==========================================
Files 52 52
Lines 1198 1207 +9
==========================================
+ Hits 1069 1076 +7
- Misses 129 131 +2
Continue to review full report at Codecov.
|
MOInputsHeterotopic
type & helpersMOInputHeterotopic
type & helpers
What's the advantage of a separate type |
Actually I just re-discovered To clarify what I'm trying to understand: what are the use-cases for a new concrete type? What things could we do (at all, or rather more easily) with it that would not work (or at least not so easily) with only Vector{Tuple{T,Int}} (and perhaps a type alias)? I'm a bit wary of adding code without concrete use-cases: to accept an increase in the maintenance burden, it'd be good to see the benefits that it brings! So I think it'd be good to demonstrate them, ideally in an example notebook... |
Hmm this is a good point I hadn't really considered. I suppose most, if not all of this can be done with simply a Are we able to create helper methods for an alias? Having support functions explicity for heterotopic data is the only potential benefit I see beyond just having a clear object named for every type of MO-input we can imagine. @willtebbutt do you have any thoughts on this? |
To be honest, in the absence of a really clear example, I'm not sure what this gets us over just using a I could imagine that the internal representation you've got here could be beneficial in some operations (I don't have any good examples though), but in such cases I'd be inclined to just use a |
Maybe we could mark the PR with a (new) label "pending clear need" for now? 🙂 |
Summary
This closes #358 which proposes making a
MOInputsHeterotopic
type and some supporting infrastructure. It is meant for multi-ouput GPs where not all data is observed at every output.