
class Weight():

    def __init__(self, value=0.0, previous_delta=0.0):
        self.value = value
        self.previous_val = value
        self.previous_delta = previous_delta

    def add_delta(self, delta_w):
        self.previous_val = self.value
        self.value -= delta_w
        self.previous_delta = delta_w

    def __str__(self):
        return "{:.2f}".format(self.value)

c2db41a80b14fe472363a371e9a417ac21f80a70
<mask token>

class Weight:
    <mask token>

    def add_delta(self, delta_w):
        self.previous_val = self.value
        self.value -= delta_w
        self.previous_delta = delta_w
    <mask token>

class Weight:
    <mask token>

    def add_delta(self, delta_w):
        self.previous_val = self.value
        self.value -= delta_w
        self.previous_delta = delta_w

    def __str__(self):
        return '{:.2f}'.format(self.value)

class Weight:

    def __init__(self, value=0.0, previous_delta=0.0):
        self.value = value
        self.previous_val = value
        self.previous_delta = previous_delta

    def add_delta(self, delta_w):
        self.previous_val = self.value
        self.value -= delta_w
        self.previous_delta = delta_w

    def __str__(self):
        return '{:.2f}'.format(self.value)


class Weight():

    def __init__(self, value=0.0, previous_delta=0.0):
        self.value = value
        self.previous_val = value
        self.previous_delta = previous_delta

    def add_delta(self, delta_w):
        self.previous_val = self.value
        self.value -= delta_w
        self.previous_delta = delta_w

    def __str__(self):
        return "{:.2f}".format(self.value)
