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

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.
主站蜘蛛池模板: 镶黄旗| 本溪市| 鹤山市| 海阳市| 东丰县| 巴南区| 和田市| 绥化市| 天峨县| 贡嘎县| 福海县| 临安市| 宁都县| 阜阳市| 惠东县| 错那县| 都江堰市| 时尚| 沈阳市| 漠河县| 保德县| 乾安县| 富平县| 荣昌县| 贵溪市| 翁牛特旗| 克什克腾旗| 盘山县| 神池县| 浪卡子县| 舞钢市| 芦山县| 太原市| 道真| 东明县| 水富县| 平江县| 马尔康县| 界首市| 临海市| 兴文县|