tasks
Task
A task offers a light-touch way for users to specify any arbitrary downstream task that they want to run on a dataset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
str
|
The name of the task. |
required |
run |
Callable
|
The function to run. |
required |
supports_aequitas |
Whether the task supports Aequitas evaluation. |
False
|
|
description |
str
|
The description of the task. |
''
|
Source code in src/nhssynth/modules/evaluation/tasks.py
get_tasks(fn_dataset, tasks_root)
Searches for and imports all tasks in the tasks directory for a given dataset.
Uses importlib
to extract the task from the file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fn_dataset |
str
|
The name of the dataset. |
required |
tasks_root |
str
|
The root directory for downstream tasks. |
required |
Returns:
Type | Description |
---|---|
list[Task]
|
A list of tasks. |