-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use protocols for nodes (#185)
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com> Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
- Loading branch information
1 parent
ff7f043
commit 6476e19
Showing
33 changed files
with
340 additions
and
299 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
from substrafl.nodes.node import Node # isort:skip | ||
from substrafl.nodes.node import OperationKey # isort:skip | ||
from substrafl.nodes.schemas import OperationKey # isort:skip | ||
|
||
from substrafl.nodes.aggregation_node import AggregationNode | ||
from substrafl.nodes.protocol import AggregationNodeProtocol | ||
from substrafl.nodes.protocol import TestDataNodeProtocol | ||
from substrafl.nodes.protocol import TrainDataNodeProtocol | ||
from substrafl.nodes.test_data_node import TestDataNode | ||
from substrafl.nodes.train_data_node import TrainDataNode | ||
|
||
# This is needed for auto doc to find that Node module's is organizations.organization, otherwise when | ||
# trying to link Node references from one page to the Node documentation page, it fails. | ||
AggregationNode.__module__ = "organizations.aggregation_node" | ||
Node.__module__ = "organizations.organization" | ||
|
||
__all__ = ["Node", "AggregationNode", "TrainDataNode", "TestDataNode", "OperationKey"] | ||
__all__ = [ | ||
"TestDataNodeProtocol", | ||
"TrainDataNodeProtocol", | ||
"AggregationNodeProtocol", | ||
"AggregationNode", | ||
"TrainDataNode", | ||
"TestDataNode", | ||
"OperationKey", | ||
] |
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.