Engine.fit

Engine.fit(verbose=False)

Train every model the spec asks for, in order.

Parameters

Name Type Description Default
verbose bool Print each model’s name and its per-epoch numbers as they arrive. False

Returns

Name Type Description
dict[str, History] One History per model, by name. The same objects stay on the engine, so
dict[str, History] evaluate, predict and export_weights work afterwards.

Raises

Name Type Description
EngineError If a split a model needs is missing, or carries no masks while something is about to score against it. check_masks is what refuses a declared class appearing in no mask: a target channel that is zero everywhere has no gradient towards it, so the model is never shown what to find.