         index: 0
         key: "#{criterion.caption}\0#{output.caption}"
         caption: "#{criterion.caption} - #{output.caption}"
-        domain: [0, 1]
+        domain: criterion.domain
         isGrouped: yes
         criterion: criterion
         output: output

        return


      markup: table tbody [
        tr algorithmRow
        tr nameRow
        tr rocCurveRow
        tr inputParametersRow
        tr durationRow
        tr aucRow
        tr thresholdCriterionRow
        tr thresholdRow
        tr errorRow
        tr f1Row
        tr accuracyRow
        tr precisionRow
        tr recallRow
        tr specificityRow
        tr mccRow
        tr maxPerClassErrorRow
      ]
      behavior: ($element) ->
        renderRocCurves $element
        toggleAdvancedParameters $element

      ]

    createComparisonGrid = (scores) ->
      comparisonRows = []

      comparisonRows.push algorithmRow = [ th 'Method' ]
      comparisonRows.push nameRow = [ th 'Name' ]
      comparisonRows.push rocCurveRow = [ th 'ROC Curve' ]
      comparisonRows.push inputParametersRow = [
        th [
          (div 'Input Parameters')
          (hyperlink 'Show more', 'toggle-advanced-parameters')
        ]
      ]
      comparisonRows.push durationRow = [ th 'Time' ]
      comparisonRows.push aucRow = [ th 'AUC' ]


      #TODO what does it mean to have > 1 metrics
