aai-institute / pyDVL

pyDVL is a library of stable implementations of algorithms for data valuation and influence function computation
https://pydvl.org
GNU Lesser General Public License v3.0
89 stars 9 forks source link

Implement flags for parallel backends #554

Open mdbenito opened 3 months ago

mdbenito commented 3 months ago

Something like:

flag: ParallelFlag = parallel_backend.make_flag()
flag.set()
assert flag.is_set() == True

I don't think it's necessary to generalize to arbitrary values with get/set.

This would be used to signal workers to stop.

mdbenito commented 1 month ago

The refactoring of valuation methods already includes a flag prototype