florist.api.clients.mnist module¶
Implementation of the MNIST client and model.
- class MnistClient(data_path, metrics, device, loss_meter_type=LossMeterType.AVERAGE, checkpointer=None, reporters=None, progress_bar=False, intermediate_client_state_dir=None, client_name=None)[source]¶
Bases:
BasicClient
Implementation of the MNIST client.
- get_data_loaders(config)[source]¶
Return the data loader for MNIST data.
- Parameters:
config (
Dict
[str
,Union
[bool
,bytes
,float
,int
,str
]]) – (Config) the Config object for this client.- Return type:
Tuple
[DataLoader
[TensorDataset
],DataLoader
[TensorDataset
]]- Returns:
(Tuple[DataLoader[MnistDataset], DataLoader[MnistDataset]]) a tuple with the train data loader and validation data loader respectively.