In [8]:
# Set the input values
x = [2.0, 3.0, -1.0]

# Create an MLP object with 3 input neurons, 3 hidden layers (each with 4 neurons), and 1 output neuron
n = MLP(3, [4, 4, 1])

# Call the MLP object with the input values
# This triggers the __call__ method of the MLP class
n(x)
Out[8]:
Value(data=-0.3798868107884126)