feat: substratools methods as generic method#59
Merged
Conversation
Member
Author
|
/e2e -h |
|
Member
Author
|
/e2e --refs substra-tools=feat/user-define-function-name,substrafl=chore/refacto-remote-method --tests substrafl --benchmarks mnist,camelyon --mode standalone |
|
End to end tests: ✔️ SUCCESS Woohoo! 🎉 |
Member
Author
|
/e2e --refs substra-tools=feat/user-define-function-name,substrafl=chore/refacto-remote-method --tests substrafl --benchmarks mnist,camelyon --mode standalone |
|
End to end tests: ✔️ SUCCESS You rock! |
guilhem-barthes
approved these changes
Jan 10, 2023
Contributor
guilhem-barthes
left a comment
There was a problem hiding this comment.
Thanks for the work!
|
|
||
| class Metric: | ||
| def score(self, datasamples, predictions_path): | ||
| def score(self, datasamples, predictions_path, _skip=True): |
Contributor
There was a problem hiding this comment.
Compare with the use of **kwargs
|
|
||
| if InputIdentifiers.shared in inputs: | ||
| loaded_inputs["shared_state"] = ( | ||
| self.load_model(inputs[InputIdentifiers.shared]) if inputs[InputIdentifiers.shared] else None |
Contributor
There was a problem hiding this comment.
I am not sure about readability
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
3fe3e36 to
2ada17f
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Signed-off-by: ThibaultFy 50656860+ThibaultFy@users.noreply.github.com
Companion PR
Substra/substra-tools#74
Summary
Refacto of substratools_methods.py to add flexibility and simplify the code.
The functions executed by substratools does not have name constraint anymore.
Notes
Asana card: https://app.asana.com/0/1202209633046022/1203200116896589/f
Please check if the PR fulfills these requirements