Spaces:
Running
Running
Commit ·
a6d7d68
1
Parent(s): 4f4a1ca
Make the default functions more interesting
Browse files
frontends/react/src/Sidebar.tsx
CHANGED
|
@@ -19,15 +19,14 @@ const DEFAULT_HYPERPARAMETERS = {
|
|
| 19 |
const UNIVARIATE_FUNCTION_OPTIONS = {
|
| 20 |
"--Custom--": "x^2",
|
| 21 |
"Quadratic": "x^2",
|
| 22 |
-
"
|
| 23 |
-
"
|
| 24 |
-
"Sine": "sin(x)",
|
| 25 |
-
"Exponential": "exp(x)",
|
| 26 |
}
|
| 27 |
|
| 28 |
const BIVARIATE_FUNCTION_OPTIONS = {
|
| 29 |
"--Custom--": "x^2 + 3y^2",
|
| 30 |
-
"Quadratic": "x^2 +
|
|
|
|
| 31 |
"Ackley": "-20exp(-0.2 sqrt(0.5(x^2 + y^2))) - exp(0.5(cos(2 pi x) + cos(2 pi y))) + e + 20",
|
| 32 |
"Rasteringin": "20 + (x^2 - 10cos(2 pi x)) + (y^2 - 10cos(2 pi y))",
|
| 33 |
"Rosenbrock": "(1 - x)^2 + 100(y - x^2)^2",
|
|
|
|
| 19 |
const UNIVARIATE_FUNCTION_OPTIONS = {
|
| 20 |
"--Custom--": "x^2",
|
| 21 |
"Quadratic": "x^2",
|
| 22 |
+
"Local Minima": "x^2 - 0.1cos(20x)",
|
| 23 |
+
"Plateau": "x^4",
|
|
|
|
|
|
|
| 24 |
}
|
| 25 |
|
| 26 |
const BIVARIATE_FUNCTION_OPTIONS = {
|
| 27 |
"--Custom--": "x^2 + 3y^2",
|
| 28 |
+
"Quadratic": "x^2 + 3y^2",
|
| 29 |
+
"Small": "(0.05x)^2 + 3(0.05y)^2",
|
| 30 |
"Ackley": "-20exp(-0.2 sqrt(0.5(x^2 + y^2))) - exp(0.5(cos(2 pi x) + cos(2 pi y))) + e + 20",
|
| 31 |
"Rasteringin": "20 + (x^2 - 10cos(2 pi x)) + (y^2 - 10cos(2 pi y))",
|
| 32 |
"Rosenbrock": "(1 - x)^2 + 100(y - x^2)^2",
|