snorkel icon indicating copy to clipboard operation
snorkel copied to clipboard

Providing negative classification for multi-class classification.

Open mhigginslp opened this issue 6 years ago • 5 comments

In many cases, it would be useful to say when a particular instance is not a member of a particular class. For instance, an LF might want to say if a text contains the word w, then its corresponding class is not X. In the binary case, the suggested label would just be -1 but I don't see how that would work in the multi-class setting.

mhigginslp avatar Feb 21 '19 16:02 mhigginslp

Hi @mhigginslp great suggestion! We don't have this feature right now, but certainly want to put it in as a PR at some point soon.

Basically, in Snorkel we learn the LF accuracies (in the generative model) by observing the agreements and disagreements between the LFs- so nothing fundamental in our approach changes here. More generally, at some point we want to let LFs output probability distributions over the possible labels, which captures your setting (0 prob. on class X, uniform over the other ones). Again, no fundamental changes to the approach (at least in the basic way of doing this).

ajratner avatar Feb 21 '19 19:02 ajratner

would be useful, looking forward to this feature. Thanks a lot

iou2much avatar Mar 09 '19 06:03 iou2much

This would be very helpful.

rjurney avatar Oct 17 '19 22:10 rjurney

Looking forward to this feature.

regstrtn avatar Jan 14 '20 11:01 regstrtn

is there any news about this feature in the new snorkel version? thks

ImenGBY avatar Feb 23 '20 21:02 ImenGBY