swiftemulator.mean_models.offset module

Offset mean model. Basic 0th order model.

class swiftemulator.mean_models.offset.OffsetMeanModel[source]

Bases: MeanModel

A basic offset mean model. Simply takes the mean of all of the dependent variables. Not likely to be useful in practice, but more of an example of using the protocol.

model: Optional[float] = None
train(independent: ndarray, dependent: ndarray) None[source]

Train the model. See MeanModel for more information.

predict(independent: ndarray) ndarray[source]

Predict using the model. See MeanModel for more information.