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

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.
主站蜘蛛池模板: 黎平县| 荣昌县| 灵石县| 图木舒克市| 博湖县| 安福县| 策勒县| 长宁区| 大新县| 和政县| 阳原县| 梅河口市| 巨野县| 寻乌县| 邓州市| 新乡市| 建水县| 得荣县| 阜新市| 桦川县| 土默特左旗| 虎林市| 东乡| 囊谦县| 岑溪市| 会昌县| 木兰县| 榆林市| 登封市| 屏东市| 攀枝花市| 盐边县| 泰宁县| 盐城市| 马公市| 深圳市| 固安县| 大余县| 华池县| 阿拉善盟| 武隆县|