Hands on Session for Linear Regression

Linear Regression Steps

  • Create or import the data set
  • Import essential libraries
  • Read the dataset
  • Define the value of x and y
  • Splitting the dataset into training and test set.
  • Fitting the Simple Linear Regression model to the training dataset
  • Prediction of Testing and Training set result
  • Plot the regression along with data points

Leave a Reply

Your email address will not be published. Required fields are marked *