-
Notifications
You must be signed in to change notification settings - Fork 9
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
Refactor/handle solve args #748
Open
selmanozleyen
wants to merge
26
commits into
main
Choose a base branch
from
refactor/handle-solve-args
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
310b273
move the alpha check to GWSolver level instead of parent classes
selmanozleyen 6c8d42d
add tests to check if alpha fails or not
selmanozleyen 0b06cc4
remove kwargs on a more public problem class
selmanozleyen feca7ec
pre-commit
selmanozleyen c7cceb1
add test that asserts type error when unrecognized args are given
selmanozleyen 9edaafb
set default according to the data provided
selmanozleyen 376eccf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 01c89a2
Revert "remove kwargs on a more public problem class"
selmanozleyen 49c8bbc
improve the tests to also use other rank solvers
selmanozleyen f303a14
remove skipped tests and add link to other skipped test
selmanozleyen 9457676
Merge branch 'main' into refactor/handle-solve-args
selmanozleyen 1582baa
adapt to was solvers new api
selmanozleyen a21c45f
update the tests
selmanozleyen a1dfd64
update tests for solvers new api
selmanozleyen e4dea94
adapt tests for solvers new api
selmanozleyen 608ca73
check if it's callable for solvers initializer instance instead of st…
selmanozleyen ae2c681
again simply linear_ot_solver -> linear_solver
selmanozleyen 895085d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 7e472dc
fix test for also fgw tests
selmanozleyen 19d7f35
lint
selmanozleyen 9e069bf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 23c7caa
fix linting errors
selmanozleyen aeb1621
fix test_backend tests. There were some ignored args
selmanozleyen 6543d57
format
selmanozleyen 0b517a6
update test_pass_arguments
selmanozleyen 9cb9c36
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
can we just make a comment behind this that default is 0.5
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.
I'm actually wondering whether we should have a default
alpha
whenever we don't want it to be 1.0I.e. always set it explicitly in the classes which use GW, wdyt?
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.
I set it like this so that it doesn't change the current behaviour.
You mean to make non-optional? I personally prefer non-optional parameters, especially if the class is an internal solver. I also think we should rename
GWSolver
toFGWSolver
(because it technically can solve fgw and gw) and just setalpha=1
when in aGWProblem
.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.
I think that makes sense