brainpy.train.offline.RidgeTrainer#

class brainpy.train.offline.RidgeTrainer(target, alpha=1e-07, **kwargs)[source]#

Trainer of ridge regression, also known as regression with Tikhonov regularization.

Parameters
  • target (TrainingSystem, DynamicalSystem) – The target model.

  • beta (float) – The regularization coefficient.

  • **kwarg – Other common parameters for brainpy.nn.RNNTrainer`.

__init__(target, alpha=1e-07, **kwargs)[source]#

Methods

__init__(target[, alpha])

build_monitors(return_without_idx, ...)

f_predict([shared_args])

f_train([shared_args])

Get training function.

fit(train_data[, reset_state, shared_args])

Fit the target model according to the given training and testing data.

format_monitors()

predict(inputs[, reset_state, shared_args, ...])

Prediction function.

reset_state()

run(*args, **kwargs)

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

Attributes