openfl.component.assigner.tasks.TrainTask

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

Bases: Task

TrainTask class.

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

  • function_name (str) – Name of the function to be executed for 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.

Class Attributes:

task_type (str) – Type of the task. Set to ‘train’.

Methods

Attributes

apply_local

task_type

name

function_name

parameters