- Machine Learning for OpenCV
- Michael Beyeler
- 283字
- 2021-07-02 19:47:20
Understanding supervised learning
We have previously established that the goal of supervised learning is always to predict the labels (or target values) of some data. However, depending on the nature of these labels, supervised learning can come in two distinct forms:
- Classification: Supervised learning is called classification whenever we use the data to predict categories. A good example of this is when we try to predict whether an image contains a cat or a dog. Here, the labels of the data are categorical, either one or the other, but never a mixture of categories. For example, a picture contains either a cat or a dog, never 50 percent cat and 50 percent dog (before you ask, no, here we do not consider pictures of the cartoon character CatDog), and our job is simply to tell which one it is. When there are only two choices, it is called two-class or binary classification. When there are more than two categories, as when predicting what the weather will be like the next day, it is known as multi-class classification.
- Regression: Supervised learning is called regression whenever we use the data to predict real values. A good example of this is when we try to predict stock prices. Rather than predicting stock categories, the goal of regression is to predict a target value as accurately as possible; for example, to predict the stock prices with as little an error as possible.
Perhaps the easiest way to figure out whether we are dealing with a classification or regression problem is to ask ourselves the following question: What are we actually trying to predict? The answer is given in the following figure:

Differentiating between classification and regression problems
推薦閱讀
- 單片機C語言程序設計實訓100例:基于STC8051+Proteus仿真與實戰
- Production Ready OpenStack:Recipes for Successful Environments
- SQL語言從入門到精通
- Magento 1.8 Development Cookbook
- GameMaker Programming By Example
- Android開發:從0到1 (清華開發者書庫)
- Asynchronous Android Programming(Second Edition)
- AutoCAD 2009實訓指導
- 軟件測試綜合技術
- 大學計算機基礎
- 深度探索Go語言:對象模型與runtime的原理特性及應用
- 智能手機故障檢測與維修從入門到精通
- 大學計算機基礎實驗指導
- Mastering Android Studio 3
- 實驗編程:PsychoPy從入門到精通