TpFpFn.iteration_completed#

TpFpFn.iteration_completed(engine: Engine) None#

Helper method to update metric’s computation. It is automatically attached to the engine with attach().

Args:

engine: the engine to which the metric must be attached

Note:

engine.state.output is used to compute metric values. The majority of implemented metrics accept the following formats for engine.state.output: (y_pred, y) or {'y_pred': y_pred, 'y': y}. y_pred and y can be torch tensors or list of tensors/numbers if applicable.

Changed in version 0.4.5: y_pred and y can be torch tensors or list of tensors/numbers