官术网_书友最值得收藏!

Choosing the type of regression model

With all of these options, how do you choose the right type of regression model?

The type of regression model you choose depends on what your expected output is. If you are looking for just a Boolean (that is, 0 or 1) value, logistic regression models should be used like in the file classification application we will be writing later in this chapter. In addition, if you are looking to return a specific pre-defined range of values, perhaps a car type such as coupe, convertible, or hatchback, a logistic regression model is the correct model to choose from. 

Conversely, linear regression models return a numeric value, such as the employment duration example we will explore later in this chapter. 

So, to summarize, we have the following:

  • If your output is a Boolean value, use a logistic regression model.
  • If your output is comprised of a preset range type of values (akin to an enumeration), use a logistic regression model.
  • If your output is a numeric unknown value, use a linear regression model.
主站蜘蛛池模板: 绥德县| 简阳市| 兴化市| 邵阳县| 龙南县| 逊克县| 玉林市| 吉水县| 曲麻莱县| 平果县| 错那县| 南宫市| 中牟县| 云安县| 宽甸| 山东省| 盐池县| 华坪县| 柞水县| 五寨县| 巴彦淖尔市| 天祝| 柳河县| 芜湖县| 利川市| 绥滨县| 七台河市| 丰顺县| 栾川县| 杨浦区| 兴城市| 永吉县| 东光县| 壶关县| 仪征市| 临海市| 海林市| 河东区| 八宿县| 潼南县| 黎平县|