title: Log Of Target Variable Linear regression
body: <p>I am working on a linear regression housing dataset. </p>
  
  <p>I am taking the log of my target variable like </p>
  
  <pre><code>df['SalePrice']=np.log(df['SalePrice'])
  </code></pre>
  
  <p>Then I am taking the exponent of my outcome to compute the loss as </p>
  
  <pre><code>lin_mse = mean_squared_error(np.exp(housing_predictions), np.exp(y_test))
  lin_rmse = np.sqrt(lin_mse)
  </code></pre>
  
  <p>I am getting a huge error. Earlier I was getting around 23 but after this I am getting 22723! Without taking np.exp i get 0.1 but I want to compare to my previous value. What is going wrong here?</p>