Ways to predict a continuous variable from a combination of continuous and categorical features

260 Views Asked by At

I have a dataset which contains house prices as well as both continuous features, such as the area, and categorical ones, such as the neighborhood. I would like to build a model which predict house prices (using scikit-learn).

For continuous features there is linear regression and for categorical ones multinomial logistic regression, but what is the recommended way to combine the two?

1

There are 1 best solutions below

0
On

What matters is the "type" of your dependent variable, i.e., if it is a price then I guess that it continuous. Thus, any linear regression would do the trick. Such models can easily deal with both categorical and continuous independent variables.