Closed cdeepakroy closed 3 years ago
Hi @cdeepakroy, thanks for reporting! Confirmed this as a bug, and we're looking into a patch.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
I am having the exact same problem (snorkel version: 0.9.5). There is no error when prec_init
is initialized to a single float value. Has the bug been patched or did I miss something?
Issue description
I wanted to specify the reliability of different weakly supervised LFs to the
LabelModel
. I noticed that we can specify these as precision priors through theprec_init
parameter to theLabelModel.fit()
methodhttps://github.com/snorkel-team/snorkel/blob/master/snorkel/labeling/model/label_model.py#L45
However,
prec_init
parameter seems to only accept scalar values. Providing an array with precision value of each LF throws the following error:Code example/repro steps
Below is a short code snippet to reproduce this error within a jupyter notebook:
System info