tff.simulation.baselines.BaselineTask
Stay organized with collections
Save and categorize content based on your preferences.
Specification for a baseline learning simulation.
tff.simulation.baselines.BaselineTask(
datasets, model_fn
)
Methods
__eq__
__eq__(
other
)
Method generated by attrs for class BaselineTask.
__ne__
__ne__(
other
)
Method generated by attrs for class BaselineTask.
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.baselines.BaselineTask\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\nSpecification for a baseline learning simulation. \n\n tff.simulation.baselines.BaselineTask(\n datasets, model_fn\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `datasets` | A [`tff.simulation.baselines.BaselineTaskDatasets`](../../../tff/simulation/baselines/BaselineTaskDatasets) object specifying dataset-related aspects of the task, including training data and preprocessing functions. |\n| `model_fn` | A no-arg callable returning a [`tff.learning.models.VariableModel`](../../../tff/learning/models/VariableModel) used for the task. Note that `model_fn().input_spec` must match `datasets.element_type_structure`. |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `__eq__`\n\n __eq__(\n other\n )\n\nMethod generated by attrs for class BaselineTask.\n\n### `__ne__`\n\n __ne__(\n other\n )\n\nMethod generated by attrs for class BaselineTask."]]