Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultEnvoyConfig = `
shard_descriptor:
template: dummy_shard_descriptor.FedLCMDummyShardDescriptor`
)
Variables ¶
View Source
var ( FATE_1_11_1_WithPortalChartArchiveContent = getFATE_1_11_1_WithPortalChartArchiveContent() FATEExchange_1_11_1_WithManagerChartArchiveContent = getFATEExchange_1_11_1_WithManagerChartArchiveContent() )
View Source
var ( FedLCMOpenFLDirector030ChartArchiveContent = getFedLCMOpenFLDirector030ChartArchiveContent() FedLCMOpenFLEnvoy030ChartArchiveContent = getFedLCMOpenFLEnvoy030ChartArchiveContent() )
View Source
var DefaultEnvoyPythonConfig = map[string]string{"dummy_shard_descriptor.py": `
from typing import Iterable
from typing import List
import logging
from openfl.interface.interactive_api.shard_descriptor import DummyShardDescriptor
logger = logging.getLogger(__name__)
class FedLCMDummyShardDescriptor(DummyShardDescriptor):
"""Dummy shard descriptor class."""
def __init__(self) -> None:
"""Initialize DummyShardDescriptor."""
super().__init__(['1'], ['1'], 128)
@property
def sample_shape(self) -> List[str]:
"""Return the sample shape info."""
return ['1']
@property
def target_shape(self) -> List[str]:
"""Return the target shape info."""
return ['1']
@property
def dataset_description(self) -> str:
logger.info(
f'Sample shape: {self.sample_shape}, '
f'target shape: {self.target_shape}'
)
"""Return the dataset description."""
return 'This is dummy data shard descriptor provided by FedLCM project. You should implement your own data ' \
'loader to load your local data for each Envoy.'
`}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.