EqualityAI / EqualityML

Evidence-based tools and community collaboration to end algorithmic bias, one data scientist at a time.
Apache License 2.0
34 stars 3 forks source link

Add random_seed for resampling #16

Closed jaared closed 1 year ago

jaared commented 1 year ago

Resampling is random so we need to make it reproducible.

I think dalex.resample uses numpy. possibly we can just put np.random_seed(random_seed) in the code someplace.

Let me know if we need to talk about this one.

https://github.com/EqualityAI/EqualityML/blob/90e04435007a653b5c4c69dc5a9b86e0c5d34ce7/equalityml/fair.py#L270-L294

JoaoGranja commented 1 year ago

Fixed