From 000957904f523fd74ed092baf96944c723f3bc80 Mon Sep 17 00:00:00 2001 From: Christian Bepler Date: Fri, 19 Jun 2026 17:48:33 +0000 Subject: [PATCH] docs: add new gp kernels to predictor rest api spec Regenerate the predictor OpenAPI bundle (source/_static/js/predictorSpec.js) from openprotein-api: rename matern21 -> matern12, add matern52, periodic, rational_quadratic, and the period/alpha kernel hyperparameters. --- source/_static/js/predictorSpec.js | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/source/_static/js/predictorSpec.js b/source/_static/js/predictorSpec.js index f4955fd..6e06180 100644 --- a/source/_static/js/predictorSpec.js +++ b/source/_static/js/predictorSpec.js @@ -1450,7 +1450,15 @@ const predictorSpec = { type: { type: "string", description: "Type of kernel to use with GP.", - enum: ["linear", "rbf", "matern21", "matern32"], + enum: [ + "linear", + "rbf", + "matern12", + "matern32", + "matern52", + "periodic", + "rational_quadratic", + ], example: "rbf", }, multitask: { @@ -1459,6 +1467,20 @@ const predictorSpec = { example: true, default: false, }, + period: { + type: "number", + format: "double", + description: + "Period length for the periodic kernel. Only valid when type is periodic.", + example: 1, + }, + alpha: { + type: "number", + format: "double", + description: + "Scale-mixture parameter for the rational_quadratic kernel; must be > 0. Only valid when type is rational_quadratic.", + example: 1, + }, }, }, TrainRequestGP: {