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

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.
主站蜘蛛池模板: 滨海县| 台中市| 安平县| 东港市| 青海省| 枣庄市| 岚皋县| 富宁县| 扎鲁特旗| 冕宁县| 丹寨县| 东乌珠穆沁旗| 游戏| 凤翔县| 思南县| 唐山市| 永康市| 镇坪县| 水城县| 芷江| 龙井市| 大安市| 革吉县| 阜平县| 平武县| 富裕县| 石台县| 宽甸| 邳州市| 新密市| 寻甸| 若羌县| 盖州市| 新密市| 雅江县| 改则县| 甘谷县| 湖南省| 常山县| 上杭县| 沂源县|