Sine
continuiti.benchmarks.sine
Sine benchmarks.
SineBenchmark(n_sensors=32, n_evaluations=32, n_train=1024, n_test=32, uniform=False)
¶
Bases: Benchmark
Sine benchmark.
The SineBenchmark contains a dataset of trigonometric functions
with the following properties:
- Input and output function spaces are the same.
- The input space is mapped to the output space with the identity operator.
- Both the the domain and the co-domain are sampled on a regular grid, if
uniformisFalse, or uniformly, otherwise. - The parameter \(k\) is sampled uniformly from \([\pi, 2\pi]\).
| PARAMETER | DESCRIPTION |
|---|---|
n_sensors |
number of sensors.
TYPE:
|
n_evaluations |
number of evaluations.
TYPE:
|
n_train |
number of observations in the train dataset.
TYPE:
|
n_test |
number of observations in the test dataset.
TYPE:
|
uniform |
whether to sample the domain and co-domain random uniformly.
TYPE:
|
Source code in src/continuiti/benchmarks/sine.py
SineRegular()
¶
Bases: SineBenchmark
Sine benchmark with the domain and co-domain sampled on a regular grid.
The SineRegular benchmark is a SineBenchmark with the following
properties:
n_sensorsis 32.n_evaluationsis 32.n_trainis 1024.n_testis 1024.uniformisFalse.
Source code in src/continuiti/benchmarks/sine.py
SineUniform()
¶
Bases: SineBenchmark
Sine benchmark with the domain and co-domain sampled random uniformly.
The SineRegular benchmark is a SineBenchmark with the following
properties:
n_sensorsis 32.n_evaluationsis 32.n_trainis 4096.n_testis 4096.uniformisTrue.
Source code in src/continuiti/benchmarks/sine.py
Created: 2024-08-22