Revert "Changed regression function"

This reverts commit 1b5f5d28ab4466d646b9bbbca7c2533950f57ed8.