Multitask GP syntactic sugar
See original GitHub issueMultitask GPs can be written in GPyTorch as is (see #208), but right now it is extremely ugly.
Proposed interface:
- Introduce a
MultitaskKernel
model, which wraps a standard kernel function and returns the Kronecker product between an index (task) kernel and the supplied input kernel. - Mean functions take in an
n_tasks
argument, which defaults as None. Ifn_tasks=d
, means will return ann x d
output. - Multiple outputs (for train_y) should be expressed in an
n x d
matrix.
Necessary updates:
- We introduce a syntactic sugar for
GaussianRandomVariables
. If the mean is ann x d
matrix and the covariance is annd x nd
LazyVariable, we will figure things outvar
,std
, etc. will returnn x d
matricessample
will return ann x d x s
tensor- Explicitly evaluating the covariance might return an
n x d x n x d
tensor, or maybe and x nd
tensor? Thoughts? (Probably won’t happen too often, but probably a good corner case to catch.)
inv_quad_log_det
is updated to handle this new syntactic sugar.
The hadamard multitask case (one task per input) will remain essentially the same.
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
Multitask GP Regression — GPyTorch 1.9.0 documentation
Multitask regression, introduced in this paper learns similarities in the outputs simultaneously. It's useful when you are performing regression on multiple ...
Read more >Multi-task learning models for functional data and application ...
The present document is dedicated to the analysis of functional data and the definition of multi-task models for regression and clustering.
Read more >integrating remote invocations with asynchronism and ...
ABSTRACT. In this paper we argue that it is possible to couple the advantages of programming with the well-known abstraction of RPC with...
Read more >Lessons from Learning Ada in 2021 - Hacker News
I have not tried out Ada's multi-tasking capability, but it has a simple TASK ... never bothered to improve and add more syntactic...
Read more >On the relationship between multitask neural networks and ...
Our construction enables using multitask GP to perform efficient Bayesian inference for the equivalent MTDNN with infinitely-wide hidden layers.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is something quick an dirty that takes the
n x t
mean andnt x nt
covar and gets the job done at least for sampling:Maybe labels should always be
n x 1
and thenb x n x t
means b batches of n data on t tasks?