Open anilsh opened 1 year ago
Hi @anilsh. Please follow the instructions from the bug report template to print all dependencies.
This is by design AFAIK. If we allowed loading multiple times you could have something like
constraint = DemographicParity()
eg = ExponentiatedGradient(constraints=constraint, ...)
eg.fit(...) # calls load_data and sets fields internal to the moment
constraint.load_data(different_data)
In other words, one could mess up the constraint object in weird ways. I can see two changes we could make
load_data
should be _load_data
to avoid giving people the impression that it's something they could use (?), and@MiroDudik wdyt?
When I try to run the GridSearch twice or ExponentiatedGradient after GridSearch, the constraints returns the following error.
AssertionError: data can be loaded only once
Full stack trace is: