snorkel-team / snorkel

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

Update black version to fix build #1693

Closed fpoms closed 2 years ago

fpoms commented 2 years ago

Description of proposed changes

Update black version to 22.3>= to fix issue with newer version of Click (https://github.com/pallets/click/issues/2225). Also modify test_loss.py to change np.testing.assert_equal(ce_loss.numpy(), ces_loss.numpy()) to np.testing.assert_almost_equal(ce_loss.numpy(), ces_loss.numpy()) to deal with newer torch code.

Related issue(s)

Fixes # (issue)

Test plan

Checklist

Need help on these? Just ask!