简体   繁体   中英

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.

The basic CRF doesn't support multilabel classification. However, some extensions have been explored, such as the Collective Multi-label (CML) and the Collective Multi-label with Features (CMLF). From (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. 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. Petterson et. al. recently presented another interesting generative modeling approach in a reverse manner, predicting a set of instances given the labels [39].


References:

I encountered a modified CRF named fuzzy CRF as shown below.

在此处输入图片说明

Its mathematics is quite simple as we can see from equation 2 in the paper:

在此处输入图片说明

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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