hierarchy¶
pymor-demo hierarchy [OPTIONS] PROBLEM_NUMBER REGRESSOR GRID_INTERVALS NUM_PARAMETERS
Adaptive model hierarchy combining reduced basis and machine learning methods.
Problem number 0 considers an elliptic problem and problem number 1 considers a parabolic problem.
Arguments:
PROBLEM_NUMBERSelects the problem to solve [0 or 1]. [Required, Choices:
0,1]REGRESSORRegressor to use. Options are neural networks using PyTorch, pyMOR’s VKOGA algorithm or Gaussian process regression using scikit-learn. [Required, Choices:
fcnn,vkoga,gpr]GRID_INTERVALSGrid interval count. [Required]
NUM_PARAMETERSNumber of parameters to evaluate the hierarchy for. [Required]
Parameters:
--time-stepsNumber of time steps used for discretization (only used if
problem_numberis 1). [Default:10]--time-vectorized, --no-time-vectorizedPredict the whole time trajectory at once or iteratively. [Default:
True]--vis, --no-visVisualize estimated errors for the queried parameters. [Default:
False]--validation-ratioRatio of training data used for validation of the neural networks. [Default:
0.1]--input-scaling, --no-input-scalingScale the input of the regressor (i.e. the parameter). [Default:
False]--output-scaling, --no-output-scalingScale the output of the regressor (i.e. reduced coefficients or output quantity). [Default:
False]