BPFF

Contents

BPFF#

class brainpy.BPFF(target, loss_fun, optimizer=None, loss_has_aux=False, loss_auto_run=True, seed=None, shuffle_data=None, **kwargs)[source]#

The trainer implementing back propagation algorithm for feedforward neural networks.

For more parameters, users should refer to DSRunner.

predict(inputs, reset_state=True, shared_args=None, eval_time=False)[source]#

Predict a series of input data with the given target model.

This function use the JIT compilation to accelerate the model simulation. Moreover, it can automatically monitor the node variables, states, inputs, feedbacks and its output.

Parameters:
Return type:

TypeVar(Output)

Returns:

  • output (ArrayType, dict) – The model output.