From 3ddf5ef7f8db148e7d10e7460cea5487a6860351 Mon Sep 17 00:00:00 2001 From: Morten Piibeleht Date: Thu, 20 Apr 2023 17:28:20 +1200 Subject: [PATCH 1/2] Fix equation formatting in the manual --- docs/src/radials.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/radials.md b/docs/src/radials.md index 4fbe50d60..2ed4a98b6 100644 --- a/docs/src/radials.md +++ b/docs/src/radials.md @@ -1,7 +1,9 @@ ## Radial Surrogates The Radial Basis Surrogate model represents the interpolating function as a linear combination of basis functions, one for each training point. Let's start with something easy to get our hands dirty. I want to build a surrogate for: -`f(x) = log(x)*x^2+x^3`` +```math +f(x) = \log(x) \cdot x^2+x^3 +``` Let's choose the Radial Basis Surrogate for 1D. First of all we have to import these two packages: `Surrogates` and `Plots`, From 1e77ff276d435e0a578eb0631297182f1f7d1e07 Mon Sep 17 00:00:00 2001 From: Morten Piibeleht Date: Thu, 20 Apr 2023 17:37:26 +1200 Subject: [PATCH 2/2] LinearSurrogate.md: another slightly problematic one --- docs/src/LinearSurrogate.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/LinearSurrogate.md b/docs/src/LinearSurrogate.md index 0d9c5c5a2..2acff9799 100644 --- a/docs/src/LinearSurrogate.md +++ b/docs/src/LinearSurrogate.md @@ -1,7 +1,7 @@ ## Linear Surrogate Linear Surrogate is a linear approach to modeling the relationship between a scalar response or dependent variable and one or more explanatory variables. We will use Linear Surrogate to optimize following function: -$f(x) = sin(x) + log(x)$. +$f(x) = \sin(x) + \log(x)$ First of all we have to import these two packages: `Surrogates` and `Plots`.