       createVector 'scoring_time', TNumber, [ prediction.scoring_time ]
     ]
 
+    createDataframe frameLabel, vectors, (sequence 1), null,
+      description: frameLabel
+      origin: origin
+
+  inspectBinomialPrediction = (prediction) -> ->
+    { frame, model } = prediction
+
+    vectors = [
+      createFactor 'key', TString, [ model.name ]
+      createFactor 'frame', TString, [ frame.name ]
+      createFactor 'model_category', TString, [ prediction.model_category ]
+      createVector 'AUC', TNumber, [ prediction.AUC ]
+      createVector 'Gini', TNumber, [ prediction.Gini ]
+      createVector 'mse', TNumber, [ prediction.mse ]
+      createVector 'duration_in_ms', TNumber, [ prediction.duration_in_ms ]
+      createVector 'scoring_time', TNumber, [ prediction.scoring_time ]
+    ]
+
     createDataframe 'Prediction', vectors, (sequence 1), null,
       description: "Prediction output for model '#{model.name}' on frame '#{frame.name}'"
       origin: "getPrediction #{stringify model.name}, #{stringify frame.name}"
+
+  inspectBinomialConfusionMatrices2 = (frameLabel, prediction) -> ->
+    origin = "getModel #{stringify prediction.model.name}"
+    vectors = [
+      createList 'CM', prediction.confusion_matrices, formatConfusionMatrix
+      createVector 'TPR', TNumber, map prediction.confusion_matrices, computeTruePositiveRate
+      createVector 'FPR', TNumber, map prediction.confusion_matrices, computeFalsePositiveRate
+    ]
+    createDataframe frameLabel, vectors, (sequence prediction.confusion_matrices.length), null,
+      description: frameLabel
+      origin: origin
+      plot: "plot inspect '#{frameLabel}', #{origin}"
+
 
   inspectBinomialConfusionMatrices = (opts, predictions) -> ->
     vectors = [

      description: "Prediction output for model '#{model.name}' on frame '#{frame.name}'"
      origin: "getPrediction #{stringify model.name}, #{stringify frame.name}"

  inspectBinomialPrediction = (prediction) -> ->
    { frame, model } = prediction

    vectors = [

      origin: "getModel #{stringify model.key.name}"

  inspectGLMCoefficientsMagnitude = (model) -> ->
    convertTableToFrame model.output.coefficients_magnitude,
      description: "#{model.output.coefficients_magnitude.name} for GLM model #{model.key.name}"
      origin: "getModel #{stringify model.key.name}"

  inspectGLMCoefficientsTable = (model) -> ->
    convertTableToFrame model.output.coefficients_table,
      description: "#{model.output.coefficients_table.name} for GLM model #{model.key.name}"
      origin: "getModel #{stringify model.key.name}"
