inputs:
  variant_id:
    type: string
  groundtruth:
    type: string
    description: Please specify the groundtruth column, which contains the true label
      to the outputs that your flow produces.
  prediction:
    type: string
    description: Please specify the prediction column, which contains the predicted
      outputs that your flow produces.
outputs:
  grade:
    type: string
    reference: ${grade.output}
nodes:
  - name: grade
    type: python
    source:
      type: code
      path: grade.py
    inputs:
      groundtruth: ${inputs.groundtruth}
      prediction: ${inputs.prediction}
  - name: calculate_accuracy
    type: python
    source:
      type: code
      path: calculate_accuracy.py
    inputs:
      grades: ${grade.output}
      variant_ids: ${inputs.variant_id}
    aggregation: true
  - name: aggregation_assert
    type: python
    source:
      type: code
      path: aggregation_assert.py
    inputs:
      input1: ${inputs.groundtruth}
      input2: ${inputs.prediction}
    aggregation: true
