Skip to content

Conversation

henryre
Copy link
Member

@henryre henryre commented Oct 2, 2019

Description of proposed changes

Adds fault tolerance to appliers. Allows LFs/SFs to fail (abstaining if they do) and records the number of failures for each LF/SF.

Note: we don't track failure metadata for Dask or PySpark in this PR, since merging across processes can be tricky. We can add later if requested.

Test plan

Added new unit tests for core, Pandas, Dask, and PySpark appliers. Ran tox -e spark and tox -e complex

@henryre henryre requested a review from a team October 2, 2019 06:16
@codecov
Copy link

codecov bot commented Oct 2, 2019

Codecov Report

Merging #1480 into fault will increase coverage by 0.02%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##            fault    #1480      +/-   ##
==========================================
+ Coverage   97.63%   97.65%   +0.02%     
==========================================
  Files          56       56              
  Lines        2070     2093      +23     
  Branches      333      336       +3     
==========================================
+ Hits         2021     2044      +23     
  Misses         22       22              
  Partials       27       27
Impacted Files Coverage Δ
snorkel/labeling/apply/core.py 100% <100%> (ø) ⬆️
snorkel/labeling/apply/pandas.py 100% <100%> (ø) ⬆️
snorkel/labeling/apply/dask.py 100% <100%> (ø) ⬆️
snorkel/slicing/monitor.py 100% <100%> (ø) ⬆️

Copy link
Member

@vincentschen vincentschen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excited for this!

@henryre henryre requested review from vincentschen and a team October 7, 2019 05:10
Copy link
Member

@vincentschen vincentschen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@henryre henryre merged commit 3c47605 into fault Oct 9, 2019
@henryre henryre deleted the apply-tol branch October 9, 2019 04:52
henryre added a commit that referenced this pull request Oct 9, 2019
* Remove fault tolerant mode from LF/SF

* Add fault tolerance to appliers (#1480)
henryre added a commit that referenced this pull request Oct 11, 2019
* Remove fault tolerant mode from LF/SF

* Add fault tolerance to appliers (#1480)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants