πŸ“„ relationΒΆ

Note

ID: tasks.classification.multi_class.relation | Type: FormTask

{
    "augmentable_inputs": [
        "text_a",
        "text_b"
    ],
    "inputs": {
        "classes": "List[str]",
        "text_a": "str",
        "text_a_type": "str",
        "text_b": "str",
        "text_b_type": "str",
        "type_of_relation": "str"
    },
    "metrics": [
        "metrics.f1_micro",
        "metrics.accuracy",
        "metrics.f1_macro"
    ],
    "outputs": {
        "label": "str"
    },
    "prediction_type": "str",
    "type": "form_task"
}

Explanation about FormTaskΒΆ

FormTask packs the different instance fields into dictionaries by their roles in the task.

Attributes:
inputs (Union[Dict[str, str], List[str]]):

Dictionary with string names of instance input fields and types of respective values. In case a list is passed, each type will be assumed to be Any.

outputs (Union[Dict[str, str], List[str]]):

Dictionary with string names of instance output fields and types of respective values. In case a list is passed, each type will be assumed to be Any.

metrics (List[str]): List of names of metrics to be used in the task. prediction_type (Optional[str]):

Need to be consistent with all used metrics. Defaults to None, which means that it will be set to Any.

The output instance contains three fields:

β€œinputs” whose value is a sub-dictionary of the input instance, consisting of all the fields listed in Arg β€˜inputs’. β€œoutputs” – for the fields listed in Arg β€œoutputs”. β€œmetrics” – to contain the value of Arg β€˜metrics’

References: metrics.f1_macro, metrics.accuracy, metrics.f1_micro

Read more about catalog usage here.