def __init__(self, net, input, target, **kwargs): self.net = net self.input = input self.target = target self.kwargs = kwargs self.x = tool.np_get_ref(net) self.lerr = 1e10
def __init__(self, net, input, target, lr=0.01, adapt=False): self.adapt = adapt self.lr = lr self.x = tool.np_get_ref(net)
def __init__(self, net, input, target, lr=0.01, adapt=False): self.adapt = adapt self.lr = lr self.x = tool.np_get_ref(net) # Regularization not suppotr self.rr = 0