- 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.
推薦閱讀
- Instant Testing with CasperJS
- Java異步編程實戰
- PyTorch自然語言處理入門與實戰
- Python測試開發入門與實踐
- Practical Windows Forensics
- Backbone.js Blueprints
- Haxe Game Development Essentials
- 深入淺出Serverless:技術原理與應用實踐
- Python算法指南:程序員經典算法分析與實現
- Angular開發入門與實戰
- SQL Server數據庫管理與開發兵書
- GameMaker Essentials
- 從零開始學Python網絡爬蟲
- 區塊鏈架構之美:從比特幣、以太坊、超級賬本看區塊鏈架構設計
- MySQL 8從零開始學(視頻教學版)