Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

kernellib's skill shelf: kernels, graphs and estimators on top of gaussx

Design · the skill tree for a ladder library one tier above the base

1Decision

Recommended: kernellib’s shelf is 17 use skills and six extend skills, each tagged with its role, grouped into seven units; two skills are listed, today’s kernel-methods-with-kernellib as the front door and a new kernel-estimators-and-tests. Alternative: one listed skill over the whole shelf, as today, which costs less in every session and leaves graphs and estimators to be found through the front door. Status: open, 12 Nov 2026.

What does not change: kernellib’s public API, its six contributor skills, and the name of today’s skill. This page follows the pattern of gaussx’s shelf and says only where kernellib differs.

2Motivation

kernellib has seven kinds of thing, each of its dependents uses one to three of them, and one skill of 181 lines covers all seven.

Table 1:kernellib’s public names by unit, at the submodule pin. The rungs follow the layers of its AGENTS.md (0 functions and kernels, 1 operators and features, 2 estimators).

UnitRungsHome bandSubpackagesNames
Kernels⓪ ①MLkernellib.functional 30, kernellib._kernels 29, kernellib._derivatives 8, kernellib._heuristics 4, kernellib 2, kernellib._density 174
Geostatistical kernels⓪ML, geosciencekernellib._geo 4141
Operators and feature maps⓪, setupnumerics, MLkernellib._spectral 19, kernellib._operators 1736
Graphs⓪ ①MLkernellib._graph 3636
Estimators③ ④MLkernellib._regression 15, kernellib.sklearn 520
Decomposition③MLkernellib._decomposition 1414
Dependence measures④MLkernellib._dependence 1212
All233

Table 2:Which part of kernellib each dependent package uses.

Dependent packageNames usedKernelsGeostatistical kernelsOperators and feature mapsGraphsEstimatorsDecompositionDependence measures
pyrox-gp2517042020
manipy-jax133006040
pyrox-lgm50005000
pyrox-nn32010000
plumax11000000

Four packages depend on kernellib, and none of them uses its estimators, its dependence measures or its geostatistical kernels. pyrox-gp takes kernels and a few feature maps; manipy takes graphs, decompositions and a few kernels; pyrox-lgm takes graphs only; pyrox-nn takes two kernels and a feature map, too few for a card. The 73 names of the estimators, the dependence measures and the geostatistical kernels are used by people, not by another library.

3The shelf

The contributor skills are the skeleton: each add-<thing> names something kernellib lets you add, and so a part of the shelf.

Table 3:kernellib’s shelf. Each use skill is one file; the extend skills exist today in .claude/skills/.

RoleSkillCoversSubpackage
⓪ structureKernels and compositionRBF, Matern, Periodic and the rest; +, *, .select, .stretch, warping and modulation_kernels
⓪ structureDerivative kernelsDerivative, DerivativeIndexed, derivative observations_kernels
⓪ structureKernels on the sphere and on meshesgreat-circle, chordal, sphere-series and mesh kernels_geo
⓪ structureVector-field and space-time kernelscurl-free, divergence-free, Gneiting, Advected, geometric anisotropy_geo
⓪ structureKernel operatorsto_operator, KernelOperator, implicit and cross operators, batched matvecs_operators
⓪ structureGraphs and neighbour searchKNNGraph, GridGraph, mesh graphs, Laplacians, eigenpairs_graph
⓪ structureGraph and stream-network kernelsGraphMatern, GraphHeat, diffusion and commute-time kernels, tail-up and tail-down_graph
⓪ structureadd-kernel, add-kernel-operator, add-graph-componentextend
① primitiveKernel functions on arraysrbf_kernel and the other pure functions, matrix-level HSIC and CKAfunctional
① primitiveDerivatives of a predictorgradient, jacobian, hessian, laplacian, divergence, curl_derivatives
① primitiveLengthscale heuristicsestimate_lengthscale, lengthscale_grid, the gamma conversions_heuristics
setupFeature mapsrandom Fourier, orthogonal, FastFood, Nyström, Laplace-eigenfunction and Slepian features_spectral
setupLow-rank operators and landmarksnystrom_operator, rff_operator, fastfood_operator, landmark selection_operators, _spectral
setupadd-feature-mapextend
③ modelKernel ridge regression at scaleKRR, Falkon, EigenPro and their preconditioners_regression
③ modelKernel PCA and eigenmapsKernelPCA, Laplacian and Schrödinger eigenmaps, locality-preserving projections_decomposition
③ modelscikit-learn adaptersthe estimators, transformers and tests as scikit-learn objects, behind the [sklearn] extrasklearn
③ modeladd-estimatorextend
④ algorithmDependence measureshsic, cka, kernel_alignment, distance covariance_dependence
④ algorithmTwo-sample and permutation testsmmd_squared, energy_distance, permutation_test, streaming CKA_dependence
④ algorithmadd-dependence-measureextend

kernellib has no ② of its own: its estimators take gaussx’s solver strategies, so “how the solve is done” is a card from below, not a skill here. One entry is a judgement call: feature maps are tagged setup, because a map is fitted once on a kernel and inputs and then reused, although the fitted object is a Module.

4Units and cards

A dependent package receives the card of each unit it uses at least three names of, or subclasses a name of.

Table 4:The cards each dependent package would receive from kernellib.

Dependent packageCardsAlso uses
pyrox-gpKernels; Operators and feature mapsGraphs (2); Decomposition (2)
manipy-jaxKernels; Graphs; Decomposition
pyrox-lgmGraphs
pyrox-nnnoneKernels (2); Operators and feature maps (1)
plumaxnoneKernels (1)

kernellib is the first library with cards flowing both ways. From below it receives two of gaussx’s seven: structures and primitives, and strategies (Table 6). Upwards it gives one to three of its own seven to each dependent. So pyrox-gp’s block holds kernellib’s kernels card, and the gaussx cards pyrox-gp earns by its own imports, never the gaussx cards kernellib received. A card goes exactly one edge up.

5Listed skills

Table 5:The listed use skills. Line budgets are proposals.

SkillUnitsFloor it carries cards forAsked for as
kernel-methods-with-kernellib, the front door, at most 150 lineskernels; geostatistical kernels; operators and feature maps; graphsgaussx: structures and primitives, strategies“build a kernel”, “a Gram matrix as an operator”, “random features”
kernel-estimators-and-tests, at most 150 linesestimators; decomposition; dependence measureskernels; operators and feature maps“kernel ridge regression”, “is X independent of Y”, “kernel PCA”

The second skill is listed because its audience differs: it is used mostly by people running an analysis, and among the libraries only manipy takes its decompositions.

6What kernellib needs from below

FromSurfaces to a callerCard in
gaussxyes: a Gram matrix is a gaussx operator, and estimators take a gaussx solver strategythe front door
geonnaxyes, narrowly: the random-feature and basis functions the feature maps build onoperators and feature maps, once geonnax has a shelf
lineax, equinoxyes: operators and kernels are lineax operators and Modulescovered by gaussx’s card and by role-ladder

7Where kernellib bends the pattern

  1. Units that no library uses still need a card. The estimators, the dependence measures and the geostatistical kernels have no dependent package. Their cards are for the band front doors and the capstones, not for another library’s block.

  2. A library can have no rung of its own. kernellib’s strategies are gaussx’s. The shelf says so in one line and points down.

  3. The public surface is wider than the package root. kernellib.functional and kernellib.sklearn hold 36 names the root does not export, so the measurement reads public submodules as well.

8Gates

Gates GX-0 to GX-6 of gaussx’s shelf apply with kernellib’s names. tests/test_skill_shelf.py already checks the first two: the tables above are current, and every public name belongs to a unit.

9Risks

10Relationships