lib.sedna.algorithms.unseen_task_detect.unseen_task_detect
¶
Unseen task detection algorithms for Lifelong Learning
Module Contents¶
Classes¶
Judgment based on the confidence of the prediction result, |
|
Judgment based on whether the metadata of the sample has been found in KB |
- class lib.sedna.algorithms.unseen_task_detect.unseen_task_detect.ModelProbeFilter[source]¶
Bases:
BaseFilter
,abc.ABC
Judgment based on the confidence of the prediction result, typically used for classification problems
- __call__(tasks: List[sedna.algorithms.multi_task_learning.task_jobs.artifact.Task] = None, threshold=0.5, **kwargs)[source]¶
- Parameters:
tasks (inference task) –
threshold (float) – threshold considered credible
- Returns:
is unseen task – True means unseen task, False means not.
- Return type:
bool
- class lib.sedna.algorithms.unseen_task_detect.unseen_task_detect.TaskAttrFilter[source]¶
Bases:
BaseFilter
,abc.ABC
Judgment based on whether the metadata of the sample has been found in KB
- __call__(tasks: List[sedna.algorithms.multi_task_learning.task_jobs.artifact.Task] = None, **kwargs)[source]¶
- Parameters:
tasks (inference task) –
- Returns:
is unseen task – True means unseen task, False means not.
- Return type:
bool