Closed martingui8 closed 4 years ago
You are correct, the issue is that networkx changed their syntax between minor versions. You may find #1491 and #1494 relevant. Our Python requirements currently upperbound networkx to be <2.4.
Thanks for your confirmation @bhancock8. Is it planned to update graph_utils to recover compatibility with networkx' current version or should I close this issue?
I think we'll keep the current requirements for the near future, since it's stable. Though if this becomes a blocker for people in the places where they're using Snorkel, we'd love to hear about it and can bump up the priority for updating the code everywhere to match the latest networkx version.
Problem description
snorkel/labeling/model/graph_utils.py is using a depreciated function of package networkx: .node() which has been replaced in latest versions of networkx by .nodes().
Trying to use label_model.fit(L) thus raises the following error if networkx has been updated when installing an other package.
AttributeError Traceback (most recent call last)