project-bikesharing/my_answers.py
def update_weights(self, delta_weights_i_h, delta_weights_h_o, n_records):
        ''' Update weights on gradient descent step
         
            Arguments
            ---------
            delta_weights_i_h: change in weights from input to hidden layers
            delta_weights_h_o: change in weights from hidden to output layers
            n_records: number of records

        '''

        self.weights_hidden_to_output += self.lr * delta_weights_h_o/n_records  # update hidden-to-output weights with gradient descent step
        self.weights_input_to_hidden += self.lr * delta_weights_i_h/n_records
 Update weights on gradient descent step
         
            Arguments
            ---------
            delta_weights_i_h: change in weights from input to hidden layers
            delta_weights_h_o: change in weights from hidden to output layers
            n_records: number of records

        
Update weights on gradient descent step
Arguments

change in weights from input to hidden layers
delta_weights_h_o: change in weights from hidden to output layers
n_records: number of records
Update weights on gradient descent step Arguments change in weights from input to hidden layers delta_weights_h_o : change in weights from hidden to output layers n_records : number of records
def update_weights(self, delta_weights_i_h, delta_weights_h_o, n_records):
        self.weights_hidden_to_output += self.lr * delta_weights_h_o/n_records  
        self.weights_input_to_hidden += self.lr * delta_weights_i_h/n_records
def update_weights ( self , delta_weights_i_h , delta_weights_h_o , n_records ) : self . weights_hidden_to_output += self . lr * delta_weights_h_o / n_records self . weights_input_to_hidden += self . lr * delta_weights_i_h / n_records
Update weights on gradient descent step
Arguments
Update weights on gradient descent step Arguments
''' Update weights on gradient descent step
         
            Arguments
            ---------
            delta_weights_i_h: change in weights from input to hidden layers
            delta_weights_h_o: change in weights from hidden to output layers
            n_records: number of records

        ''' # update hidden-to-output weights with gradient descent step
self
delta_weights_i_h
delta_weights_h_o
n_records