码迷,mamicode.com
首页 > 其他好文 > 详细

理解一下generative learning and discriminative learning algorithm

时间:2018-01-27 11:24:57      阅读:602      评论:0      收藏:0      [点我收藏+]

标签:div   either   logistic   ike   learning   ima   bsp   nat   pos   

Given a training set, an algorithm like logistic regression or the perceptron algorithm (basically) tries to find a straight line—that is, a decision boundary—that separates the elephants and dogs. Then, to classify a new animal as either an elephant or a dog, it checks on which side of the decision boundary it falls, and makes its prediction accordingly. We call these discriminative learning algorithm.

Here’s a different approach. First, looking at elephants, we can build a model of what elephants look like. Then, looking at dogs, we can build a separate model of what dogs look like. Finally, to classify a new animal, we can match the new animal against the elephant model, and match it against the dog model, to see whether the new animal looks more like the elephants or more like the dogs we had seen in the training set. We call these generative learning algorithm.

理解一下generative learning and discriminative learning algorithm

标签:div   either   logistic   ike   learning   ima   bsp   nat   pos   

原文地址:https://www.cnblogs.com/jxr041100/p/8364676.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!