         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

        aucRow.push td format4f auc.AUC
        #TODO fix error badge
        #errorRow.push td (format4f metrics.error_measure) + errorBadge #TODO change to bootstrap badge
        thresholdCriterionRow.push td head auc.threshold_criteria
        thresholdRow.push td format4f head auc.threshold_for_criteria
        errorRow.push td format4f head auc.error_for_criteria
        f1Row.push td format4f head auc.F1_for_criteria
        accuracyRow.push td format4f head auc.accuracy_for_criteria
        precisionRow.push td format4f head auc.precision_for_criteria
        recallRow.push td format4f head auc.recall_for_criteria
        specificityRow.push td format4f head auc.specificity_for_criteria
        mccRow.push td format4f head auc.mcc_for_criteria
        maxPerClassErrorRow.push td format4f head auc.max_per_class_error_for_criteria

      renderRocCurves = ($element) ->
        forEach scores, (score, scoreIndex) ->


  createComparisonTable = (scores) ->
    [ div, table, kvtable, thead, tbody, tr, trExpert, diffSpan, th, thIndent, td, hyperlink] = geyser.generate words 'div table.table.table-condensed table.table-kv thead tbody tr tr.y-expert span.y-diff th th.y-indent td div.y-link'
    [ tdId, thWide ] = geyser.generate "td id='$id'", "th colspan='#{scores.length + 1}' style='background:#f5f5f5'"

    createParameterTable = ({ parameters }) ->
      kvtable [
