def _fprime(score, x_full, k_params, alpha):
 x_params = x_full[:k_params]
 return np.append(score(x_params), alpha)

def _fprime ( score , x_full , k_params , alpha ) : x_params = x_full [ : k_params ] return np . append ( score ( x_params ) , alpha )
the regularized derivative .