Skip to content
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

Corrupt shard utils and experiments #389

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
from openfl.interface.interactive_api.shard_descriptor import ShardDataset
from openfl.interface.interactive_api.shard_descriptor import ShardDescriptor
from openfl.utilities import validate_file_hash
from openfl.utilities.dataset_spoilers import corrupt_shard
from openfl.utilities.dataset_spoilers import spoil_targets_random_choice


class KvasirShardDataset(ShardDataset):
Expand Down Expand Up @@ -55,6 +57,7 @@ def __len__(self):
return len(self.images_names)


@corrupt_shard(spoil_targets_random_choice)
class KvasirShardDescriptor(ShardDescriptor):
"""Shard descriptor class."""

Expand Down
Loading