- Hands-On Machine Learning with ML.NET
- Jarred Capellman
- 181字
- 2021-06-24 16:43:31
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.
推薦閱讀
- Cocos2d Cross-Platform Game Development Cookbook(Second Edition)
- Learning Cython Programming
- Effective C#:改善C#代碼的50個有效方法(原書第3版)
- Learning Docker
- SQL Server 2012數據庫技術及應用(微課版·第5版)
- INSTANT Sencha Touch
- Python Tools for Visual Studio
- Learning AndEngine
- Java性能權威指南(第2版)
- OpenGL Data Visualization Cookbook
- 微信小程序開發與實戰(微課版)
- Mastering Backbone.js
- JavaScript+jQuery網頁特效設計任務驅動教程
- 跟戴銘學iOS編程:理順核心知識點
- Modernizing Legacy Applications in PHP