forked from securefederatedai/openfl
-
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.
…eratedai#983) * Remove need for aggregator to have dataset for model weight initialization Signed-off-by: Patrick Foley <psfoley@gmail.com> * Remove extra print arguments Signed-off-by: Patrick Foley <psfoley@gmail.com> * Address review comments Signed-off-by: Patrick Foley <psfoley@gmail.com> * Remove extraneous print statement Signed-off-by: Patrick Foley <psfoley@gmail.com> --------- Signed-off-by: Patrick Foley <psfoley@gmail.com>
- Loading branch information
Showing
4 changed files
with
45 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright (C) 2020-2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
"""Mock objects to eliminate extraneous dependencies""" | ||
|
||
|
||
class MockDataLoader: | ||
"""Placeholder dataloader for when data is not available""" | ||
def __init__(self, feature_shape): | ||
self.feature_shape = feature_shape | ||
|
||
def get_feature_shape(self): | ||
return self.feature_shape |