#NEWLINE# def __init__( self , lr = 0.01 , momentum = 0.0 , decay = 0.0 , nesterov = False , * args , **kwargs ) : #NEWLINE# #INDENT# super ( SGD , self ) . __init__ ( ** kwargs ) #NEWLINE# self . __dict__ . update ( locals ( ) ) #NEWLINE# self . iterations = 0 #NEWLINE# self . lr = lr #NEWLINE# self . momentum = nesterov #NEWLINE# self . decay = decay