LinearSystem

class safe_learning.LinearSystem(matrices, name='linear_system')

A linear system.

y = A_1 * x + A_2 * x_2 …

Parameters:
*matrices : list

Can specify an arbitrary amount of matrices for the linear system. Each is multiplied by the corresponding state that is passed to evaluate.

Attributes:
parameters

Return the variables within the current scope.

scope_name

Methods

__call__(self, \*args, \*\*kwargs) Evaluate the function using the template to ensure variable sharing.
build_evaluation(self, points) Return the function values.
copy_parameters(self, other_instance) Copy over the parameters of another instance.
build_evaluation(self, points)

Return the function values.

Parameters:
points : ndarray

The points at which to evaluate the function. One row for each data points.

Returns:
values : tf.Tensor

A 2D array with the function values at the points.

copy_parameters(self, other_instance)

Copy over the parameters of another instance.

parameters

Return the variables within the current scope.