New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display progress bar for grid search and exponentiated gradient #517
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. I'll send you some instructions for DCO for the future.
@@ -41,6 +41,7 @@ | |||
* Add new constraints and objectives in `ThresholdOptimizer` | |||
* Add class `InterpolatedThresholder` to represent the fitted `ThresholdOptimizer` | |||
* Add `fairlearn.datasets` module. | |||
* Display progress bar for grid search and exponentiated gradient |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: GridSearch
and ExponentiatedGradient
Signed-off-by: Arjun Singh <arjsingh@microsoft.com>
I'd be happier if we add an option like |
@adrinjalali this is interesting, thanks for sharing! We've had a number of people ask for this because the refitting over so many iterations can take time and it's not necessarily clear whether the notebook died in the meanwhile. Is there a downside to showing that output? If not, I feel tempted to say the default is to show it. By soft dependency do you mean to use it if it's available but not otherwise (try-except), or do you mean having an extension of fairlearn, say |
And that's why it's a good idea to have It's the same with sklearn's Now in terms of how to show the progress, I would very much prefer using So ideally, I'd have a solution which has In general, it's totally fine to add dependencies when working on one's own script, but they should not be taken lightly when it comes to library development. |
@adrinjalali I think all your points are valid. I looked a little bit into how this is done in scikit-learn, and to be honest I was surprised to see |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adrin made some very valid points. Perhaps best to see whether we can get into a similar pattern to scikit-learn without introducing new dependencies.
Mostly for historical reasons I guess. And we know it's bad and we're trying to fix it: Recent proposal: |
Also related to |
I agree that the output should be an option, and I can see the sense in making any such dependency 'soft'. That bit about threading and |
Closing this PR since we decided not to go with |
No description provided.