def set_loss(self, *args, **kwargs):
        self.losses = []
        self.add_loss(*args, **kwargs)
Clear the current loss functions from the network and add a new one.
dataset/ETHPy150Open lmjohns3/theanets/theanets/graph.py/Network.set_loss