Elron commited on
Commit
a5c6b35
1 Parent(s): 5c70b0f

Upload card.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. card.py +15 -1
card.py CHANGED
@@ -10,9 +10,23 @@ from .task import FormTask
10
 
11
 
12
  class TaskCard(Artifact):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  loader: Loader
14
- task: FormTask
15
  preprocess_steps: List[StreamingOperator] = None
 
16
  templates: Collection = None
17
  instructions: Collection = None
18
  sampler: Sampler = OptionalField(default_factory=RandomSampler)
 
10
 
11
 
12
  class TaskCard(Artifact):
13
+ """TaskCard delineates the phases in transforming the source dataset into a model-input, and specifies the metrics for evaluation of model-output.
14
+
15
+ Attributes:
16
+ loader: specifies the source address and the loading operator that can access that source and transform it into a unitxt multistream.
17
+
18
+ preprocess_steps: list of unitxt operators to process the data source into a model-input.
19
+
20
+ task: specifies the fields (of the already (pre)processed instance) making the inputs, the fields making the outputs, and the metrics to be used for evaluating the model output.
21
+
22
+ templates: format strings to be applied on the input fields (specified by the task) and the output fields. The templates also carry with them the list of postprocessing steps, to be applied to the model output.
23
+
24
+ instructions: as presented to the executor of the task.
25
+ """
26
+
27
  loader: Loader
 
28
  preprocess_steps: List[StreamingOperator] = None
29
+ task: FormTask
30
  templates: Collection = None
31
  instructions: Collection = None
32
  sampler: Sampler = OptionalField(default_factory=RandomSampler)