Skip to content

Allow relaxation of ReLUQuadratic #178

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

Merged
merged 9 commits into from
Apr 14, 2025
Merged

Allow relaxation of ReLUQuadratic #178

merged 9 commits into from
Apr 14, 2025

Conversation

Robbybp
Copy link
Collaborator

@Robbybp Robbybp commented Apr 13, 2025

Fixes #177. I didn't put much thought into the names. This still needs to update the docstring.

@Robbybp Robbybp changed the title Allow relaxation of QuadraticReLU Allow relaxation of ReLUQuadratic Apr 13, 2025
@@ -244,7 +244,7 @@ function add_predictor(
end

"""
ReLUQuadratic() <: AbstractPredictor
ReLUQuadratic(; relaxation_parameter = nothing) <: AbstractPredictor
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm okay with the name, but other options could be: relaxation_tolerance, tolerance, atol, complementarity_mu, mu, complementarity_tolerance... not sure if any of those are better

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I like relaxation_* as it communicates the qualitative change that happens when this parameter is set. (Although I may kick myself for this when I inevitably forget what this is called in six months.) I could go with tolerance or parameter.

Copy link

codecov bot commented Apr 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (623f6de) to head (7afb089).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #178   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           24        24           
  Lines          639       644    +5     
=========================================
+ Hits           639       644    +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@odow odow merged commit eb41afa into main Apr 14, 2025
7 checks passed
@odow odow deleted the rp/relu-quadratic branch April 14, 2025 02:19
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.

Allow relaxation of ReLUQuadratic
2 participants