This document loads and cleans a dataset using Pandas and NumPy. It then splits the data into training and testing sets. A simple linear regression model is fitted to the training set and used to make predictions on the testing set. Various steps are shown, including saving the model, visualizing results and making a new prediction.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
115 views3 pages
Salary Prediction - Ipynb
This document loads and cleans a dataset using Pandas and NumPy. It then splits the data into training and testing sets. A simple linear regression model is fitted to the training set and used to make predictions on the testing set. Various steps are shown, including saving the model, visualizing results and making a new prediction.