tff.simulation.compose_dataset_computation_with_learning_process
Stay organized with collections
Save and categorize content based on your preferences.
Builds a new learning process which constructs datasets on clients.
tff.simulation.compose_dataset_computation_with_learning_process(
dataset_computation: tff.Computation
,
process: tff.learning.templates.LearningProcess
) -> tff.learning.templates.LearningProcess
This functionality is identical to
tff.simulation.compose_dataset_computation_with_iterative_process
, except
that all public attributes of the process (except for initialize
and next
)
are also preserved (eg. LearningProcess.get_model_weights
).
Args |
dataset_computation
|
An instance of tff.Computation which accepts some
parameter and returns an element of tff.SequenceType .
|
process
|
An instance of tff.learning.templates.LearningProcess whose
next function accepts exactly one federated dataset (ie. something of
type {B*}@CLIENTS , where B is equivalent to the return type of
dataset_computation ).
|
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.
[null,null,["Last updated 2024-09-20 UTC."],[],[],null,["# tff.simulation.compose_dataset_computation_with_learning_process\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/federated/blob/v0.87.0 Version 2.0, January 2004 Licensed under the Apache License, Version 2.0 (the) |\n\nBuilds a new learning process which constructs datasets on clients. \n\n tff.simulation.compose_dataset_computation_with_learning_process(\n dataset_computation: ../../tff/Computation,\n process: ../../tff/learning/templates/LearningProcess\n ) -\u003e ../../tff/learning/templates/LearningProcess\n\nThis functionality is identical to\n[`tff.simulation.compose_dataset_computation_with_iterative_process`](../../tff/simulation/compose_dataset_computation_with_iterative_process), except\nthat all public attributes of the process (except for `initialize` and `next`)\nare also preserved (eg. [`LearningProcess.get_model_weights`](../../tff/learning/templates/LearningProcess#get_model_weights)).\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `dataset_computation` | An instance of [`tff.Computation`](../../tff/Computation) which accepts some parameter and returns an element of [`tff.SequenceType`](../../tff/types/SequenceType). |\n| `process` | An instance of [`tff.learning.templates.LearningProcess`](../../tff/learning/templates/LearningProcess) whose `next` function accepts exactly one federated dataset (ie. something of type `{B*}@CLIENTS`, where `B` is equivalent to the return type of `dataset_computation`). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A [`tff.learning.templates.LearningProcess`](../../tff/learning/templates/LearningProcess). ||\n\n\u003cbr /\u003e"]]