tff.simulation.baselines.ClientSpec
Stay organized with collections
Save and categorize content based on your preferences.
Contains information for configuring clients within a training task.
tff.simulation.baselines.ClientSpec(
num_epochs,
batch_size,
max_elements=attr_dict['max_elements'].default,
shuffle_buffer_size=attr_dict['shuffle_buffer_size'].default
)
Attributes |
num_epochs
|
An integer representing the number of passes each client
performs over its entire local dataset.
|
batch_size
|
An integer representing the batch size used when iterating over
client datasets.
|
max_elements
|
An optional positive integer governing the maximum number of
examples used by each client. By default, this is set to None in which
case clients use their full dataset. The maximun number of examples is
taken after the entire local dataset is repeated for the number of passes
defined by num_epochs .
|
shuffle_buffer_size
|
An optional positive integer specifying the shuffle
buffer size to use. If set to None , a default value suitable for the
task's dataset will be used. If set to 1 , no shuffling occurs.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-20 UTC."],[],[]]