A tff.program.FederatedDataSourceIterator backed by

Inherits From: FederatedDataSourceIterator

A tff.program.FederatedDataSourceIterator backed by a sequence of's,' per client. It selects datasources uniformly at random, with replacement over successive calls of select() but without replacement within a single call of select().

datasets A sequence of's to use to yield the data from this data source. </td> </tr><tr> <td>federated_type<a id="federated_type"></a> </td> <td> The type of the data returned by callingselect` on an iterator.

ValueError If datasets is empty or if each in datasets does not have the same type specification.

federated_type The type of the data returned by calling select.



View source

Deserializes the object from bytes.


View source

Returns a new selection of data from this iterator.

k A number of elements to select. Must be a positive integer and less than the number of datasets.

ValueError If k is not a positive integer or if k is not less than the number of datasets.


View source

Serializes the object to bytes.


View source

Return self==value.