PointSetOperatorBC#

class pinnx.icbc.PointSetOperatorBC(points, values, func)[source]#

General operator boundary conditions for a set of points.

Compare the function output, func, (that associates with points)

with values (target data).

Parameters:
  • points (Dict[str, Union[Array, ndarray, bool, number, bool, int, float, complex, Quantity]]) – An array of points where the corresponding target values are known and used for training.

  • values (Dict[str, Union[Array, ndarray, bool, number, bool, int, float, complex, Quantity]]) – An array of values which output of function should fulfill.

  • func (Callable[[Dict[str, Union[Array, ndarray, bool, number, bool, int, float, complex, Quantity]], Dict[str, Union[Array, ndarray, bool, number, bool, int, float, complex, Quantity]]], Dict[str, Union[Array, ndarray, bool, number, bool, int, float, complex, Quantity]]]) – A function takes arguments (inputs, outputs,) and outputs a tensor of size N x 1, where N is the length of inputs. inputs and outputs are the network input and output tensors, respectively; X are the NumPy array of the inputs.

collocation_points(X)[source]#

Return the collocation points for boundary conditions.

Parameters:

X – Collocation points.

Returns:

Collocation points for boundary conditions.

error(bc_inputs, bc_outputs, **kwargs)[source]#

Returns the loss for each component at the initial or boundary conditions.