snorkel-team / snorkel

A system for quickly generating training data with weak supervision
https://snorkel.org
Apache License 2.0
5.81k stars 857 forks source link

probabilistic weight for each labelling function? #1714

Closed arfeen93 closed 1 year ago

arfeen93 commented 2 years ago

Does Snorkel have probabilistic weight for each labelling function accounting for predicted label ? For example, suppose we have three labeling function resulting in a particular label output as 1. Does snorkel provide the weights corresponding to each labelling function resulting in a particular prediction? If yes, Can you please point out to the correct direction.

yinxiangshi commented 1 year ago

Yes, if you just wanna see the prob output of the snorkel, you can use:

snorkel.labeling.model.label_model.LabelModel.get_weights()

Doc is here: https://snorkel.readthedocs.io/en/v0.9.7/packages/_autosummary/labeling/snorkel.labeling.model.label_model.LabelModel.html?highlight=state_dict#snorkel.labeling.model.label_model.LabelModel.get_weights

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.