lib.sedna.algorithms.seen_task_learning.task_allocation.base_task_allocation

Mining tasks of inference sample based on task attribute extractor

param samples : infer sample:

param see sedna.datasources.BaseDataSource for more detail.:

returns:

allocations

rtype:

tasks that assigned to each sample

Module Contents

Classes

BaseTaskAllocation

Base class of task allocation algorithm

class lib.sedna.algorithms.seen_task_learning.task_allocation.base_task_allocation.BaseTaskAllocation(task_extractor, **kwargs)[source]

Base class of task allocation algorithm

Parameters:

task_extractor (Model or dict) – task extractor is used to predict target tasks

abstract __call__(samples: sedna.datasources.BaseDataSource)[source]