-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add Hilbert Space Student T Process #6997
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
Conversation
218f574
to
8ee10ce
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6997 +/- ##
==========================================
+ Coverage 87.78% 92.12% +4.33%
==========================================
Files 100 100
Lines 16896 16911 +15
==========================================
+ Hits 14832 15579 +747
+ Misses 2064 1332 -732
|
After seeing this there's a couple things that make me prefer the option of passing What about def HSTP(mean_func, cov_func, nu):
""" Hilbert Space Student-t process
Reference: ...
"""
return HSGP(...) Then we don't need to think about an inheritance structure or refactor again so it works with HSGP Periodic, especially because it'd be great to have HSTP Periodic. RE _base_dist, could it be anything? I would expect it'd only be But I'm super excited to use this, I think HSTP will be used as a default before HSGP in a lot of cases. What do you think @ferrine? |
mean_func=mean_func, | ||
cov_func=scale_func, | ||
) | ||
self.nu = pt.as_tensor_variable(nu) |
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.
Referencing variables in the scope of the class is what's messing up with #6883
Is there another way?
PS: I know this is just the tip of the iceberg but would be great to figure it out sooner rather than later.
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.
Is there another way?
Yeah, probably for the GP classes it's possible, but I think for the covariance functions is where it will be a lot harder.
Let's wait the #6883 and then continue, so it will be one round of refactoring |
Are you sure? Pytensorifying the GP and covariance function library is a huge refactor. I think that it'd be great to get HSTP's in ASAP, and a refactor isn't necessary to do so (see my comment from Nov 7 above here). |
I agree with @bwengals, it might take a while to do the other changes. |
Still not sure what should be the design choice, and should this eve stop me from taking any branch I find more appealing. We'll anyway refactor everything as far as I get it |
What about just keeping the |
After all the refactorings in HSGP, it makes sense to create the PR from scratch |
Closes #6920
📚 Documentation preview 📚: https://pymc--6997.org.readthedocs.build/en/6997/