def __init__(self, logdir, *args, **kwargs):
    super().__init__(*args, **kwargs)
    self.path = os.path.join(logdir, 'curves.png')
def __init__(self, logdir, *args, **kwargs):
    super().__init__(*args, **kwargs)
    self.path = os.path.join(logdir, 'curves.png')