Simple Linear Regression
Use the computers.csv dataset and perform the following activities:
Dataset contains the details of time taken to repair a computer, given the number of units to be repaired.
Dataset: https://drive.google.com/file/d/1vZB2fDeRmyeU5V9onXCYB_74K_BnWf7f/view?usp=sharing
- Build Regression model using Scikit-Learn Library(Model 3).
- Set the 'Units' column as the input data or predictor column
- Set the 'Minutes' column as the output data
- Importing the required class - LinearRegression
- Creating a linear regression model
- Fitting the model to the data
- Fetching intercept and coefficient
- Creating Linear Regression model with calculated coefficient and intercept.
- Add the above model to the dataframe for Visualization.
- Visualize Models using pyplot.
- Compute the Coefficient of Determination to find accuracy.
********************************************************************