【机器学习】-Week4.5 Multiclass Classification

Multiclass Classification

To classify data into multiple classes, we let our hypothesis function return a vector of values. Say we wanted to classify our data into one of four categories. We will use the following example to see how this classification is done. This algorithm takes as input an image and classifies it accordingly:


【机器学习】-Week4.5 Multiclass Classification_第1张图片

We can define our set of resulting classes as y:


Each y^{(i)}y(i) represents a different image corresponding to either a car, pedestrian, truck, or motorcycle. The inner layers, each provide us with some new information which leads to our final hypothesis function. The setup looks like:

【机器学习】-Week4.5 Multiclass Classification_第2张图片

Our resulting hypothesis for one set of inputs may look like:

来源:coursera 斯坦福 吴恩达 机器学习

你可能感兴趣的:(【机器学习】-Week4.5 Multiclass Classification)