-
Notifications
You must be signed in to change notification settings - Fork 8
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
WIP: Feature/refactor value #558
base: develop
Are you sure you want to change the base?
Conversation
….py - rename source-file to git-split-temp
….py - resolve conflict and keep both files
….py - restore name of source-file
…tion.py - rename file to target-name
…tion.py - rename source-file to git-split-temp
…tion.py - resolve conflict and keep both files
…tion.py - restore name of source-file
…ile to target-name
…ource-file to git-split-temp
…conflict and keep both files
…name of source-file
…file to git-split-temp
…ct and keep both files
…e-file to git-split-temp
…lict and keep both files
… file to target-name
… source-file to git-split-temp
…e conflict and keep both files
…e name of source-file
… rename file to target-name
… rename source-file to git-split-temp
… resolve conflict and keep both files
… restore name of source-file
…name file to target-name
…name source-file to git-split-temp
…solve conflict and keep both files
Co-authored-by: Anes Benmerzoug <[email protected]>
Co-authored-by: Kristof Schröder <[email protected]>
Feature/refactor gt
… - rename file to target-name
… - rename source-file to git-split-temp
… - resolve conflict and keep both files
… - restore name of source-file
@@ -92,13 +92,13 @@ class DummyModel(SupervisedModel): | |||
def __init__(self) -> None: | |||
pass | |||
|
|||
def fit(self, x: NDArray, y: NDArray) -> None: |
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.
Shouldn't this module moved to the new valuation package?
P.S. This comment is not about this specific line. I just found it easier to comment on it.
) | ||
ensure_backend_has_generator_return() | ||
|
||
self.utility.training_data = data |
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.
self.utility.training_data = data | |
self.utility.with_dataset(data) |
""" | ||
... | ||
|
||
def fit(self, data: Dataset): |
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.
Why not change the signature to this to allow using the dataset set on the utility, if there is one of course?
def fit(self, data: Dataset): | |
def fit(self, data: Dataset | None = None): |
Co-authored-by: Kristof Schröder <[email protected]>
def __init__( | ||
self, | ||
model: ModelT, | ||
scorer: Scorer, |
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.
The scorer is no longer the model's default scorer. Was it changed on purpose?
self, | ||
utility: UtilityBase, | ||
sampler: IndexSampler, | ||
is_done: StoppingCriterion, |
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.
This comes out of a discussion with @schroedk: is_done
sounds like a bool. We should discuss renaming this across all methods to something like stopping
or stop_criterion
Co-authored-by: Kristof Schröder <[email protected]>
Refactor MSR Banzhaf valuation
Description
This PR closes #XXX
closes #539
closes #187
Changes
Checklist
"tags": ["hide"]
or"tags": ["hide-input"]