简体   繁体   English

使用条件随机场的多标签分类

[英]MultiLabel Classification using Conditional Random Field

Is it possible to use Conditional Random Field for MultiLabel Classification?是否可以将条件随机字段用于多标签分类? I saw a python CRF implementation at https://pystruct.github.io/user_guide.html , but couldn't figure a way to do multilabel classification.我在https://pystruct.github.io/user_guide.html看到了一个 python CRF 实现,但无法找到进行多标签分类的方法。

The basic CRF doesn't support multilabel classification.基本 CRF 不支持多标签分类。 However, some extensions have been explored, such as the Collective Multi-label (CML) and the Collective Multi-label with Features (CMLF).但是,已经探索了一些扩展,例如集体多标签(CML)和具有特征的集体多标签(CMLF)。 From (1):从(1):

A conditional random field (CRF) based model is presented in [21] where two multi-label graphical models has been proposed, both parameterizes label co-occurances.在 [21] 中提出了一个基于条件随机场 (CRF) 的模型,其中提出了两个多标签图形模型,它们都将标签共现参数化。 The Collective Multi-label (CML) classifier maintains feature accounting for label co-occurances and the Collective Multi-label with Features (CMLF) maintains parameters that correspond to features for each co-occuring label pair.集体多标签 (CML) 分类器维护标签共现的特征,而带特征的集体多标签 (CMLF) 维护与每个共现标签对的特征相对应的参数。 Petterson et.彼得森等。 al.阿尔。 recently presented another interesting generative modeling approach in a reverse manner, predicting a set of instances given the labels [39].最近以相反的方式提出了另一种有趣的生成建模方法,预测给定标签的一组实例 [39]。


References:参考资料:

I encountered a modified CRF named fuzzy CRF as shown below.我遇到了一个名为模糊 CRF的修改后的CRF ,如下所示。

在此处输入图片说明

Its mathematics is quite simple as we can see from equation 2 in the paper:从论文中的方程 2 可以看出,它的数学非常简单:

在此处输入图片说明

We just sum all the energies of the paths in the numerator, and the denominator remains the same.我们只是将分子中路径的所有能量相加,分母保持不变。 For inference, we can apply Viterbi or beam search.对于推理,我们可以应用维特比或波束搜索。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM