avalanche.evaluation.metrics.ElapsedTime

class avalanche.evaluation.metrics.ElapsedTime[source]

The standalone Elapsed Time metric.

Instances of this metric keep track of the time elapsed between calls to the update method. The starting time is set when the update method is called for the first time. That is, the starting time is not taken at the time the constructor is invoked.

Calling the update method more than twice will update the metric to the elapsed time between the first and the last call to update.

The result, obtained using the result method, is the time, in seconds, computed as stated above.

The reset method will set the metric to its initial state, thus resetting the initial time. This metric in its initial state (or if the update method was invoked only once) will return an elapsed time of 0.

__init__()[source]

Creates an instance of the ElapsedTime metric.

This metric in its initial state (or if the update method was invoked only once) will return an elapsed time of 0. The metric can be updated by using the update method while the running accuracy can be retrieved using the result method.

Methods

__init__()

Creates an instance of the ElapsedTime metric.

reset()

Resets the metric, including the initial time.

result()

Retrieves the elapsed time.

update()

Update the elapsed time.