Modified log_like_gradients to make it _log_like_gradients and moved extract_gradient to _log_like_gradients_transformed.