ClickHouse/docs/zh/sql-reference/aggregate-functions/reference/categoricalinformationvalue.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
468 B
Markdown
Raw Normal View History

2021-02-02 12:00:41 +00:00
---
2022-08-26 19:07:59 +00:00
slug: /zh/sql-reference/aggregate-functions/reference/categoricalinformationvalue
2022-04-10 23:08:18 +00:00
sidebar_position: 250
2021-02-02 12:00:41 +00:00
---
# categoricalInformationValue {#categoricalinformationvalue}
2021-02-03 15:22:18 +00:00
对于每个类别计算 `(P(tag = 1) - P(tag = 0))(log(P(tag = 1)) - log(P(tag = 0)))`
2021-02-02 12:00:41 +00:00
``` sql
categoricalInformationValue(category1, category2, ..., tag)
```
2021-02-03 15:22:18 +00:00
结果指示离散(分类)要素如何使用 `[category1, category2, ...]` 有助于使用学习模型预测`tag`的值。