joel-woodfield commited on
Commit
a6d7d68
·
1 Parent(s): 4f4a1ca

Make the default functions more interesting

Browse files
Files changed (1) hide show
  1. frontends/react/src/Sidebar.tsx +4 -5
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
- "Cubic": "x^3 - 3x^2 + 2x",
23
- "Quartic": "x^4 - 4x^3 + 6x^2 - 4x + 1",
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 + y^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",