langtest.tasks.task.BaseTask#
- class BaseTask#
Bases:
ABCAbstract base class for all tasks.
- __init__()#
Methods
__init__()column_mapping(item_keys, columns_names, ...)Return the column mapping.
create_sample(*args, **kwargs)Run the task.
load_model(model_path, model_hub[, model_type])Load the model.
Attributes
Return the sample class.
sample_classtask_registry- column_mapping(item_keys, columns_names, *args, **kwargs)#
Return the column mapping.
- abstract classmethod create_sample(*args, **kwargs) Sample#
Run the task.
- property get_sample_cls#
Return the sample class.