types of regression models regression models simple multiple (univariate features(multiple featuresregression models are of following two typessimple regression modelthis is the most basic regression model in which predictions are formed from singleunivariate feature of the data multiple regression modelas name impliesin this regression model the predictions are formed from multiple features of the data building regressor in python regressor model in python can be constructed just like we constructed the classifier scikit-learna python library for machine learning can also be used to build regressor in python in the following examplewe will be building basic regression model that will fit line to the data linear regressor the necessary steps for building regressor in python are as followsstep importing necessary python package for building regressor using scikit-learnwe need to import it along with other necessary packages we can import the by using following scriptimport numpy as np from sklearn import linear_model import sklearn metrics as sm import matplotlib pyplot as plt step importing dataset after importing necessary packagewe need dataset to build regression prediction model we can import it from sklearn dataset or can use other one as per our requirement we are going to use our saved input data we can import it with the help of following scriptinput ' :\linear txtnextwe need to load this data we are using np loadtxt function to load it