# tff.simulation.baselines.BaselineTask

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) 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) |

Specification for a baseline learning simulation.

    tff.simulation.baselines.BaselineTask(
        datasets, model_fn
    )

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `datasets` | A [`tff.simulation.baselines.BaselineTaskDatasets`](https://www.tensorflow.org/federated/api_docs/python/tff/simulation/baselines/BaselineTaskDatasets) object specifying dataset-related aspects of the task, including training data and preprocessing functions. |
| `model_fn` | A no-arg callable returning a [`tff.learning.models.VariableModel`](https://www.tensorflow.org/federated/api_docs/python/tff/learning/models/VariableModel) used for the task. Note that `model_fn().input_spec` must match `datasets.element_type_structure`. |

<br />

## Methods

### `__eq__`

    __eq__(
        other
    )

Method generated by attrs for class BaselineTask.

### `__ne__`

    __ne__(
        other
    )

Method generated by attrs for class BaselineTask.