# 生成-判别模型区别

给特征向量x与标签y：

* 生成模型对联合概率p(x,y)建模，可根据y生成x数据
* 判别模型对条件概率p(y|x)建模，只能根据x对y进行判断

生成式p(x,y)：贝叶斯分类器、高斯混合模型、隐马尔可夫模型、首先玻尔兹曼机、生成对抗网络等

判别式p(y|x)：决策树、KNN、人工神经网络、支持向量机、逻辑回归、AdaBoost等


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://im-qianuxn.gitbook.io/pytorch/ji-suan-ji/ml/wen-da/sheng-cheng-pan-bie.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
