Skip to contents

This is the plan for gaussianprocesses after 1.0.0: what comes next, in what order, and why. The technical description, mathematics and acceptance criteria of each item are in its GitLab issue, and the issue decides when the two disagree. Each milestone below is also a GitLab milestone.

The plan that led to 1.0.0 is #44. Its milestones v0.2 to v1.0 (#16–#40) are delivered, and this file continues from its post-1.0 backlog.

Last revised 2026-10-21, after 1.0.0 was published on CRAN.

Where the package stands

  • Release. 1.0.0 is on CRAN. The development version adds multi-output GPs by coregionalization (#41).
  • Scope.
    • Models: exact regression with parametric means and derivative observations; heteroscedastic noise; sparse FITC and VFE models with inducing-point optimization; state-space inference for one-dimensional Matérn kernels; and Bernoulli and Poisson latent models by the Laplace approximation.
    • Tools: posterior sampling, gradient prediction, scoring rules, calibration and hyperparameter-uncertainty diagnostics, and the time-series workflow.
  • API. 87 exports, 35 of them experimental, including the four multi-output functions.
  • Verification. Every analytical derivative has a finite-difference check, each source file has a minimum test coverage, and results are compared with independent references (DiceKriging, kernlab, gplite, nlme), which are in Suggests.
  • Dependencies. Pure R, and stats is the only import.

Three weaknesses shape the first milestones:

  • The internal code is not documented. The help pages cover every export, but the 331 internal functions do not document their arguments or return values, 128 of them have no comment at all, and some files have almost none: R/gp-time-series.R has one comment line in 486 lines of code, and R/gp-benchmarks.R one in 410. CONTRIBUTING.md asks for roxygen documentation on exported functions only.
  • There is no rule for promoting experimental interfaces. About two-fifths of the exports are experimental, and nothing states what an interface needs in order to become stable, so users cannot tell which parts will settle.
  • The README predates CRAN. It installs from the tarball on the GitLab release page, and its list of goals describes the features of 0.1.0.

Principles

The seven principles of #44 still apply to every issue: mathematics first, independent verification, finite-difference checks for every gradient, deterministic statistical tests, Cholesky-based numerics, claims backed by measurements, and a pure-R core with reference packages in Suggests only. Two more are added, numbered after them:

  • 8. Readable code. Every function, exported or internal, states what it computes, its arguments, its return value, and where its equations are derived.
  • 9. Experimental first. A new interface is released as experimental, and becomes stable only under the promotion rule of milestone 1.2.

Milestones

Milestone Goal Issues
1.1 Readable code Document the internal code, describe the architecture, and make CRAN the install route. Releases multi-output GPs. #45 #46 #47, #41 (done)
1.2 Stable by rule Write a rule for promoting experimental interfaces, then review each experimental group against it. #48 #49
1.3 Structure Exact Kronecker inference for multi-output and gridded data, and nonstationary covariance by input warping. #50 #42
1.4 More likelihoods Overdispersed counts by the Laplace approximation, then variational inference for likelihoods that the Laplace approximation cannot handle. #51 #43 #52
Outside the core A public kernel extension API, Bayesian optimization, and minibatch training, each once its prerequisites are stable. none yet

The version numbers are targets. A milestone may be split across two minor releases, and a patch release can come at any time.

Why this order

  • Documentation comes first. It is cheap and affects no interface, and every later issue is easier to review once the code it changes is documented.
  • The promotion rule comes before new features. Users of 1.0 learn which interfaces they can rely on, and each new feature knows from the start what it must meet to become stable.
  • Kronecker inference comes before variational inference. It builds directly on #41 and is exact and deterministic. Variational inference is research with more numerical risk (#43).

1.1 Readable code

  • Internal documentation (#45).
    • Every internal function gets a roxygen block marked @noRd, so that no help page is generated. The block gives one sentence on what the function computes, @param for each argument, @return, and a reference to the vignette, research note or paper that derives it.
    • The files with the least documentation come first.
    • CONTRIBUTING.md extends its roxygen rule to internal functions. A test fails when a function in R/ has no documentation block, as tests/testthat/test-api-stability.R does for stability tiers.
  • Architecture guide (#46). A note in inst/notes/ that maps each model class to its files and follows one model through fitting, optimization and prediction. It names the shared parts each step uses: the kernel registry, the numerical policy, the model schema and the condition helpers. CONTRIBUTING.md currently covers only the registry and the stability policy.
  • CRAN as the install route (#47).
    • The README installs with install.packages("gaussianprocesses") and shows a CRAN badge, and its goals describe 1.0.
    • The README and inst/CITATION give the CRAN DOI, 10.32614/CRAN.package.gaussianprocesses, once it resolves.
  • Multi-output GPs (#41) are released as experimental.

1.2 Stable by rule

  • Promotion rule (#48). A proposed rule: an experimental interface becomes stable when
    1. it has not changed incompatibly for at least one minor release;
    2. it has an external validation reference in inst/validation/;
    3. each of its analytical derivatives has a finite-difference check;
    4. a vignette or article covers it; and
    5. it has no open defect.
    The rule is written into CONTRIBUTING.md and ?gaussianprocesses.
  • Review (#49). Each experimental group in R/stability.R is checked against the rule. A stable interface cannot change incompatibly before 2.0, so an interface that is in doubt stays experimental. Every promotion is listed in NEWS.md.

1.3 Structure

  • Kronecker inference (#50).
    • Multi-output. When all `p` outputs are observed at the same `n` inputs, the ICM covariance is `B \otimes K`. With per-output noise `D`, the noisy covariance is `B \otimes K + D \otimes I`, which whitens to `(D^{-1/2} B D^{-1/2}) \otimes K + I`.
    • Grids. For inputs on a grid with a product kernel, the covariance is a Kronecker product of one matrix per dimension.
    • Cost. Eigendecompositions of the factors give the exact log marginal likelihood, its gradient and predictions in `O(p^3 + n^3)` time instead of `O(p^3 n^3)`.
    • Fit with the principles. The method is exact and deterministic, so its tests can work the way the rest of the package’s do. Conjugate gradients and stochastic trace estimation do not allow that (#44, candidate 19).
    • Out of scope. LMC sums of Kronecker products, and grids with missing points.
  • Input warping (#42), as described in its issue: a Kumaraswamy warp per input dimension, with the Gibbs kernel as a stretch goal.

1.4 More likelihoods

  • Negative binomial counts (#51), the overdispersed-count follow-up of #34.
    • Under the log link the negative binomial log density is concave in the latent function, so the Laplace engine of #32 applies unchanged.
    • The dispersion is a likelihood parameter, estimated with the kernel hyperparameters through the likelihood’s parameter derivatives, as the Gaussian likelihood’s variance already is.
  • Variational inference (#43): a whitened Gaussian variational posterior over inducing values, optimized full batch.
  • Student-t regression (#52), built on #43. It gives robust regression, and it is the first likelihood that is not log-concave, which the Laplace engine rejects by design.

Outside the core

  • Public kernel extension API. The kernel registry stays internal by the decision in #39, because new kinds of registry field, such as input derivatives and state-space forms, were still being added. The decision is revisited once two minor releases have passed without a new kind of field. A public format would most likely arrive in 2.0.
  • Bayesian optimization. A companion package built on the stable API once predict_gradient_gp() is stable (#44, candidate 21). It would compute expected improvement in log form to avoid underflow (Ament et al., 2023).
  • Minibatch training and natural gradients for the variational models of #43, in an extension package.

Not planned

  • Conjugate gradients, Lanczos, stochastic trace estimation, and structured kernel interpolation. With dense kernels in pure R they bring no asymptotic gain, and stochastic log-determinants make likelihood values random (#44, candidates 19 and 20). They are reconsidered only if Kronecker inference shows a need beyond its exact cases.
  • Compiled code. The core stays pure R (principle 7).
  • Deep GPs and latent length-scale processes. These hierarchical models are outside the package’s scope (#42).

How this file is kept

  • A new item is proposed in an issue first, and enters this file once it has acceptance criteria.
  • At each minor release, delivered items leave this file for NEWS.md, and the revision date changes.