ContinuousRegTest#

class ContinuousRegTest(initial_conditions: ndarray, time_domain: ndarray, parameters: ndarray = None, input_function: Callable = None, bound: float = None)[source]#

Test case for regularization selection with time-continuous models.

The test_cases argument of opinf.roms.ROM.fit_regselect_continuous() is a list of these.

Parameters:
initial_conditions(n,) ndarray

Initial conditions to be tested.

time_domain(k,) ndarray

Time domain over which to solve the model forward in time.

parameters(p,) ndarray or float or None

Parameter value to be tested.

inputscallable or None

Input function, mapping time to input vectors, to use in the forward prediction, if the model takes inputs.

boundfloat or None

Amount that the forward prediction is allowed to deviate from the initial conditions without the trajectory being classified as unstable.

Properties:
bound: float = None#
input_function: Callable = None#
parameters: ndarray = None#
initial_conditions: ndarray#
time_domain: ndarray#
predict_args: tuple#
Methods:

copy

Return a copy of this test case with new initial conditions.

evaluate

Evaluate the model under the test case conditions.

unstable

Return True if the trajectory Q is unstable.