Kernel wishlist: categorical variants and other useful kernels
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- python
- Domain
- machine-learning
Research direction
No files, tests, or implementation entry points are named. Start by narrowing the wishlist to one proposed categorical or continuous kernel, then review the existing kernel implementations and determine the expected parameterization and validation. Done should mean a specific kernel is selected with an agreed implementation scope.
Written by the indexing model from the issue text.
Description
Collecting ideas for new kernels. ptgp currently ships:
Stationary: ExpQuad, Matern52, Matern32, Matern12
Categorical: Overlap, LowRankCategorical
Non-stationary: RandomWalk, Gibbs, WarpedInput
Categorical kernels
There's a lot of room to grow here. Some ideas:
- FullCategorical — a full-rank PSD level covariance matrix, parameterized via
pm.LKJCholeskyCovor a user-supplied PSD matrix. Proper LKJ prior on the level correlation structure. - LowRankCategorical identifiability fixes — the current
eta**2 * LowRankCategorical(W, kappa)has a scalar non-identifiability (etaandW/kappacan trade scale). Diagonal normalization (force unit diagonal on B, delegate all amplitude toeta) is the intended structural fix. - GroupedCategorical — sum or product of per-column ICM kernels for rows with multiple categorical features (e.g. country, device type, experiment arm). Mostly sugar over composing
LowRankCategoricalinstances, but the parameter setup gets repetitive without it. - HierarchicalCategorical — for nested categorical columns (country > region > city). Covariance is a sum where each level's contribution is gated by shared ancestry. Sharing across related groups regularizes sparse leaves.
Continuous kernels
What other continuous kernels would be useful? Some starting points:
- Periodic / locally periodic
- Spectral mixture
- Polynomial
- Linear
- Changepoint / switching kernels
- Rational quadratic
Open questions
- What other kernels are people using that would be worth adding?
- Are there kernels that would be useful but are tricky to implement or experiment with?
- Dominant language
- Jupyter Notebook
- Stars
- 16
- Forks
- 5
- Avg merge
- 2d 49m
- Merged PRs (30d)
- 6
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pymc-devs/ptgp
-
Difficulty 5/5 Over a week Newbie friendliness 22/100
-
Expose and document VGP variational parameters for fit diagnosticsPossibly taken @bwengals claimed this 58 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Add VGP: variational Gaussian inference for non-Gaussian likelihoods without inducing pointsPossibly taken @bwengals claimed this 156 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
pymc
Difficulty 5/5 Over a week Newbie friendliness 25/100
Similar issues
-
LinearGaussianStateSpace.dist splits states and observations wrongly when the transition varies over timePossibly taken @PabloRoque claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
pymc-devs/pymc-extras#839 ·
Maintainers usually reply within 1 day
-
[Bug]: MLX text downloads omit the requested Hub token and cache directoryPossibly taken @abhijithneilabraham claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vllm-project/vllm-metal#1423 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
CyberTimon/RapidRAW#2303 ·
Maintainers usually reply within 1 day
-
area:asr good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
dmunasingha/lingo-overlay#13 ·
-
wave-followup
Difficulty 2/5 1-3 hours Newbie friendliness 79/100