original_docstring: 
          Computes velocity with respect to gradients for gradient descent with momentum optimization
  
          :param grads: -- weights and biases gradients
          :param learning_rate: --
          :param v:
          :param beta:
          :return:
          
docstring: Computes velocity with respect to gradients for gradient descent with momentum optimization
docstring_tokens: Computes velocity with respect to gradients for gradient descent with momentum optimization
code: def _update_parameters_with_momentum(self, grads, layer, learning_rate, v, beta=0.9):
          """
          Computes velocity with respect to gradients for gradient descent with momentum optimization
  
          :param grads: -- weights and biases gradients
          :param learning_rate: --
          :param v:
          :param beta:
          :return:
          """
          W, b,  = self._parameters['W' + str(layer)], self._parameters['b' + str(layer)]
          dW, db = grads['dW' + str(layer)], grads['db' + str(layer)]
          v_dW = beta * v['dW' + str(layer)] + (1 - beta) * grads['dW' + str(layer)]
          v_db = beta * v['db' + str(layer)] + (1 - beta) * grads['db' + str(layer)]
          W, b = self._parameters['W' + str(layer)], self._parameters['b' + str(layer)]
          self._parameters['W' + str(layer)] = W - learning_rate * v_dW
          self._parameters['W' + str(layer)] = b - learning_rate * v_db
code_tokens: def _update_parameters_with_momentum ( self , grads , layer , learning_rate , v , beta = 0.9 ) : W , b , = self . _parameters [ 'W' + str ( layer ) ] , self . _parameters [ 'b' + str ( layer ) ] dW , db = grads [ 'dW' + str ( layer ) ] , grads [ 'db' + str ( layer ) ] v_dW = beta * v [ 'dW' + str ( layer ) ] + ( 1 - beta ) * grads [ 'dW' + str ( layer ) ] v_db = beta * v [ 'db' + str ( layer ) ] + ( 1 - beta ) * grads [ 'db' + str ( layer ) ] W , b = self . _parameters [ 'W' + str ( layer ) ] , self . _parameters [ 'b' + str ( layer ) ] self . _parameters [ 'W' + str ( layer ) ] = W - learning_rate * v_dW self . _parameters [ 'W' + str ( layer ) ] = b - learning_rate * v_db
short_docstring: Computes velocity with respect to gradients for gradient descent with momentum optimization
short_docstring_tokens: Computes velocity with respect to gradients for gradient descent with momentum optimization
comment: """
          Computes velocity with respect to gradients for gradient descent with momentum optimization
  
          :param grads: -- weights and biases gradients
          :param learning_rate: --
          :param v:
          :param beta:
          :return:
          """