FunctionStack¶
-
class
safe_learning.FunctionStack(functions, name='function_stack')¶ A combination of multiple 1d (uncertain) functions for each dim.
Parameters: - functions : list
The functions. There should be one for each dimension of the output.
Attributes: parametersReturn the parameters.
- scope_name
Methods
__call__(self, \*args, \*\*kwargs)Evaluate the function using the template to ensure variable sharing. add_data_point(self, x, y)Add data points to the GP model and update cholesky. build_evaluation(self, points)Evaluation, see UncertainFunction.evaluate. copy_parameters(self, other_instance)Copy over the parameters of another instance. to_mean_function(self)Turn the uncertain function into a deterministic ‘mean’ function. -
add_data_point(self, x, y)¶ Add data points to the GP model and update cholesky.
Parameters: - x : ndarray
A 2d array with the new states to add to the GP model. Each new state is on a new row.
- y : ndarray
A 2d array with the new measurements to add to the GP model. Each measurements is on a new row.
-
build_evaluation(self, points)¶ Evaluation, see UncertainFunction.evaluate.
-
copy_parameters(self, other_instance)¶ Copy over the parameters of another instance.
-
parameters¶ Return the parameters.
-
to_mean_function(self)¶ Turn the uncertain function into a deterministic ‘mean’ function.