With our planet data, we want to predict the length of the year, which is a numeric value, so we turn to regression. As mentioned at the beginning of this chapter, regression is a technique for modeling the strength and magnitude of the relationship between independent variables (our X data)—often called regressors—and the dependent variable (our y) that we want to predict.
Regression
Linear regression
Scikit-learn provides many algorithms that can handle regression tasks, ranging from decision trees to linear regression, spread across modules according to the various algorithm classes. However, typically, the best starting point is a linear regression, which can be found in the linear_model module. In simple...