Created
          June 14, 2019 12:07 
        
      - 
      
 - 
        
Save MariaLavrovskaya/fc803ae9717f91c67e14af743c91614c to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #Slope for every predictor | |
| df = pd.DataFrame({'Actual': Y_test.values.flatten(), 'Predicted': y_pred.flatten()}) | |
| df.head(25) | |
| from sklearn.metrics import mean_squared_error, r2_score | |
| print("Mean squared error: %.2f" | |
| % mean_squared_error(Y_test, y_pred)) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment