openfl.component.assigner.tasks.Task

class openfl.component.assigner.tasks.Task(name: str, function_name: str, task_type: str, apply_local: bool = False, parameters: dict = <factory>)

Bases: object

Task base dataclass.

Parameters:
  • name (str) – Name of the task.

  • function_name (str) – Name of the function to be executed for the task.

  • task_type (str) – Type of the task.

  • apply_local (bool, optional) – Whether to apply the task locally. Defaults to False.

  • parameters (dict, optional) – Parameters for the task. Defaults to an empty dictionary.

Methods

Attributes

apply_local

name

function_name

task_type

parameters