WeightingInterface#

Module for the Weighting Interface.

class WeightingInterface[source]#

Bases: object

Abstract base class for all loss weighting schemas. All weighting schemas should inherit from this class.

Initialization of the WeightingInterface class.

abstract aggregate(losses)[source]#

Aggregate the losses.

Parameters:

losses (dict) – The dictionary of losses.