π preferenceΒΆ
Note
ID: tasks.evaluation.preference | Type: FormTask
{
"augmentable_inputs": [
"input",
"instruction"
],
"inputs": [
"input",
"input_type",
"output_type",
"choices",
"instruction"
],
"metrics": [
"metrics.accuracy"
],
"outputs": [
"choices",
"output_choice"
],
"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.accuracy
Read more about catalog usage here.