Operator

class aixd.sampler.operators.Operator(*args)[source]

Bases: object

A base class for defining arithmetic and boolean operations on objects that do not yet contain actual data. The operations are executed only when the evaluate method is called with data.

Raises: ValueError: If an argument is not of type float, int, str, Operator, or DataObject.

Parameters:

*args (list of float, int, str, Operator, or DataObject.) – The arguments to initialize the operator.

Methods

evaluate

Evaluate the operator with given data.

is_differentiable

Check if the operator is differentiable.

print_all

Print the operator and all its arguments.