-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat!: merge predict and test tasks #177
Conversation
dc1d3de
to
2d50cf7
Compare
/e2e --tests substrafl |
End to end tests: ✔️ SUCCESS Congratulations! |
/e2e --tests sustrafl,camelyon,doc --refs substra-documentation=feat/merge-predict-test |
/e2e --tests substrafl |
End to end tests: ✔️ SUCCESS |
/e2e --tests camelyon |
9d2a77e
to
bd07d25
Compare
/e2e --tests camelyon EDIT: Camelyon broken on main for now |
e553588
to
2eb6e9c
Compare
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.
Thanks for the PR :)
metric_functions (Optional[Union[Dict[str, Callable], List[Callable], Callable]]): | ||
list of Functions that implement the different metrics. If a Dict is given, the keys will be used to | ||
register the result of the associated function. If a Function or a List is given, function.__name__ | ||
will be used to store the result. |
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.
Food for thought: seeing all these docstrings duplicated, I'm thinking about way to generate docstrings dynamically to avoid having to keep everything updated everywhere all the time (using __doc__
)
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.
Good food... That would be great to find smthg like this !
2eb6e9c
to
a68f828
Compare
/e2e --tests substrafl,camelyon,doc --refs substra-documentation=feat/merge-predict-test |
End to end tests: ✔️ SUCCESS “Shaken, not stirred.” ― James Bond, Goldfinger |
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.
One remaining unaddressed comment, all good else 👍
Thanks
f1b0e58
to
77c6f63
Compare
8692981
to
7dc6c25
Compare
/e2e --tests substrafl,camelyon,doc --refs substra-documentation=feat/merge-predict-test |
End to end tests: ✔️ SUCCESS |
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>
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 <thibault.fouqueray@gmail.com>
7dc6c25
to
7186314
Compare
/e2e --tests substrafl,camelyon,doc --refs substra-documentation=feat/merge-predict-test |
End to end tests: ✔️ SUCCESS “It’s alive! It’s alive!” ― Henry Frankenstein, Frankenstein |
Related issue
closes FL-1205
Summary
Strategy
implement anevaluate
method, with the@remote_data
decorator, to compute the evaluation of the model. Theevaluate
method is the same for all strategies.perform_predict
method ofStrategy
changed in favor ofperform_evaluation
that calls the newevaluate
method.metric_functions
are now passed to theStrategy
instead of theTestDataNode
.predict
method ofAlgo
has no@remote_data
decorator anymore. It signatures does not takeprediction_path
anymore, and the predictions are return by the method.Can be reviewed commit by commit.
Companions
Please check if the PR fulfills these requirements