skshapes.loss.baseloss.BaseLoss
- class skshapes.loss.baseloss.BaseLoss
Bases:
object
Base class for losses.
This class defines the + and * operators for losses, and each loss should inherit from this class. The + operator returns a SumLoss object, and the * operator returns a ProductLoss object.
This class is not meant to be used directly, if the constructor is called it raises an error.
- Raises:
NotImplementedError – this class is abstract and should not be instantiated
- __init__()
Methods
__init__
()