-
Notifications
You must be signed in to change notification settings - Fork 5
Sample generation
Kevin" Seung Whan Chung edited this page Dec 12, 2023
·
13 revisions
In order to run sample generation, we set the option main/mode
to be sample_generation
in the input file. In the example of examples/poisson/poisson.sample.yml
,
main:
mode: sample_generation
use_rom: true
solver: poisson
There are two types of sampling:
-
base
sample generator that samples over uniform grid points on parameter space -
random
sample generator that randomly choose the parameter values over a uniform random distribution
In the example of examples/poisson/poisson.sample.yml
, we use base
sample generator, saving snapshots in the name of poisson0
,
sample_generation:
type: base
file_path:
prefix: "poisson0"
The list of parameters to be sampled is specified in the input file under sample_generation/parameter
. In the example of examples/poisson/poisson.sample.yml
, we sample over one parameter:
sample_generation:
parameters:
- key: single_run/poisson0/k
type: double
sample_size: 3
minimum: 2.0
maximum: 3.0