监督学习分为两类##
regression 线性回归###
In a regression problem, we are trying to predict results within a continuous output, meaning that we are trying to map input variables to some continuous function.
线性回归就是将一些已知的输入变量映射到一个连续函数,然后在连续函数上找到对应的点。下图中通过房间大小预测房价就是一个线性回归。
regression 分类问题###
In a classification problem, we are instead trying to predict results in a discrete output. In other words, we are trying to map input variables into discrete categories.
分类问题就是将一些已知的输入变量映射到离散的类别,然后在离散的类别中找到对应的分类
下图肿瘤与年龄关系就是一个分类问题,如果已知一个肿瘤的大小,患者年龄,我们就大概知道肿瘤是否是良性,例如我们在照箭头中的标注的那样。
注:红色为恶性,蓝色为良性