-
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
chore: use protocols for nodes #185
Conversation
FL-1290 Create Nodes Protocols in SubstraFL
ContextTo prepare the arrival of the SpecificationAcceptance criteria |
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 ❤️
substrafl/evaluation_strategy.py
Outdated
if not all(isinstance(node, TestDataNode) for node in test_data_nodes): | ||
raise TypeError("test_data_nodes must include objects of TestDataNode type") | ||
if not all(isinstance(node, TestDataNodeProtocol) for node in test_data_nodes): | ||
raise TypeError("test_data_nodes must respect the TestDataNodeProtocol") |
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.
raise TypeError("test_data_nodes must respect the TestDataNodeProtocol") | |
raise TypeError("test_data_nodes must implement the TestDataNodeProtocol") |
# tests that each next() returns expected True or False | ||
# tests that next called > num_rounds raises StopIteration | ||
n_nodes = 3 | ||
num_rounds = 10 | ||
# test rounds as frequencies give expected result | ||
# mock the test nodes | ||
test_data_node = Mock(spec=TestDataNode) |
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.
❤️
7dc6c25
to
7186314
Compare
58dcb91
to
e096f74
Compare
While we are at renaming nodes, what is the reason that made us call |
Is to emphasize that these nodes are linked to datasamples. But I guess this is a valid question and both naming have there plus and cons... |
Could we have Test or Train without data? but indeed that maybe a topic to take further out off this PR |
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
Signed-off-by: ThibaultFy <[email protected]>
37c152d
to
33cea1d
Compare
Signed-off-by: ThibaultFy <[email protected]>
104e738
to
070f814
Compare
Signed-off-by: ThibaultFy <[email protected]>
070f814
to
59b2957
Compare
/e2e --tests substrafl,camelyon,doc |
/e2e --help |
|
Signed-off-by: ThibaultFy <[email protected]>
/e2e --refs substra-documentation=chore/rename-testnode --tests doc |
/e2e --refs substra-documentation=chore/rename-testnode --tests doc |
End to end tests: ✔️ SUCCESS “Shaken, not stirred.” ― James Bond, Goldfinger |
Related issue
Companion PR:
closes FL-1290
Summary
Notes
Please check if the PR fulfills these requirements