[
  {
    "course_id": 984,
    "title": "Un AUC alto no fija el acierto de tu umbral",
    "slug": "auc-por-pares-y-acierto-con-umbral",
    "level": "Inicial → lectura técnica de un resumen de clasificación",
    "intro": "Ordenar bien los casos y acertar sus clases con un corte son preguntas distintas. Mové el umbral sin tocar los puntajes y comprobá qué cambia y qué se conserva.",
    "objective": "Reconstruir ROC-AUC empírico desde comparaciones P/N, incluidos empates con medio crédito; separar ese orden de la proporción de aciertos con un umbral explícito. Conservar AUC conocido sin umbral, no definido sin ambas clases y pendiente ante referencias o puntajes ausentes.",
    "prerequisite": "Leer decimales y proporciones. No requiere entrenar un modelo, programar o conectar una herramienta de IA.",
    "editorial_authority": "academy/courses/ia-para-negocios/COURSE_OVERVIEW.md",
    "curricular_detail": "academy/courses/ia-para-negocios/TOPIC_04_EVALUAR_CALIDAD_Y_RIESGOS.md",
    "label": "Every label and score is constructed, not a model output, actual reference, customer, observed error rate or calibrated probability.",
    "source_checked_on": "2026-11-17",
    "source_refs": [
      {
        "label": "Google Developers · Machine Learning Crash Course · Classification: ROC and AUC",
        "url": "https://developers.google.com/machine-learning/crash-course/classification/roc-and-auc",
        "scope": "Consulta focal el 17/11/2026 de ROC y AUC: orden entre ejemplos positivos/negativos y dependencia de la clasificación respecto del umbral. Se limita a esos conceptos; no se copian ejemplos de spam, dibujos o ejercicios ni se usa AUC como aprobación operativa."
      },
      {
        "label": "scikit-learn 1.9.1 · roc_curve · Scores/Returns",
        "url": "https://scikit-learn.org/stable/modules/generated/sklearn.metrics.roc_curve.html",
        "scope": "Consulta focal el 17/11/2026 de documentación identificada 1.9.1: puntajes sin umbral y tasas con score>=threshold; origen(0,0)y umbrales ordenados. Sirve como referencia de convención, sin afirmar ejecución de scikit-learn o copiar ejemplos/datasets."
      },
      {
        "label": "scikit-learn 1.9.1 · auc · descripción de regla trapezoidal",
        "url": "https://scikit-learn.org/stable/modules/generated/sklearn.metrics.auc.html",
        "scope": "Consulta focal el 17/11/2026: área de una curva por regla de trapecios y coordenada X monótona. Python propio integra la ROC del aula con Fraction. El medio crédito por empate se declara y se contrasta con esta ROC agrupada; no se atribuye a Google una fórmula que omita los empates."
      }
    ],
    "runtime": {
      "implementation": "CPython",
      "version": "3.12.14",
      "system": "Windows"
    },
    "oracle": {
      "input_cases": 346,
      "ROC_constructions": 336
    },
    "profiles": [
      {
        "id": "A",
        "label": "A · orden perfecto, umbral que no elige ninguno",
        "raw": {
          "data": "P ; 0.4\nP ; 0.3\nN ; 0.2\nN ; 0.1",
          "threshold": "0.5"
        },
        "explanation": "Los cuatro pares P/N se ordenan bien: AUC 1. El umbral 0,5 no marca ningún positivo y acierta sólo los dos negativos:2/4."
      },
      {
        "id": "B",
        "label": "B · mismo AUC, otro porcentaje de aciertos",
        "raw": {
          "data": "P ; 0.4\nP ; 0.3\nN ; 0.2\nN ; 0.1",
          "threshold": "0.25"
        },
        "explanation": "El orden y AUC 1 se conservan. Con umbral 0,25 se clasifican bien los cuatro casos:4/4."
      },
      {
        "id": "C",
        "label": "C · orden invertido",
        "raw": {
          "data": "P ; 0.1\nP ; 0.2\nN ; 0.8\nN ; 0.9",
          "threshold": "0.5"
        },
        "explanation": "Ningún par favorece al positivo: AUC 0. Con umbral 0,5 todos quedan en la clase contraria: acierto 0/4."
      },
      {
        "id": "D",
        "label": "D · todos los puntajes empatados",
        "raw": {
          "data": "P ; 0.5\nP ; 0.5\nN ; 0.5\nN ; 0.5",
          "threshold": "0.5"
        },
        "explanation": "Cada par recibe medio crédito: AUC 1/2. La regla ≥ incluye el empate con el umbral y marca todos positivos: acierto 2/4."
      },
      {
        "id": "E",
        "label": "E · empate en uno de los pares",
        "raw": {
          "data": "P ; 0.8\nP ; 0.4\nN ; 0.4\nN ; 0.2",
          "threshold": "0.5"
        },
        "explanation": "Tres pares ganados y uno empatado dan AUC 7/8. El acierto con umbral 0,5 es 3/4."
      },
      {
        "id": "F",
        "label": "F · otro rango de puntajes, mismo orden",
        "raw": {
          "data": "P ; 0.9\nP ; 0.8\nN ; 0.7\nN ; 0.6",
          "threshold": "0.5"
        },
        "explanation": "El orden es el mismo que A, con AUC 1. El mismo umbral 0,5 ahora marca todos positivos. Acierto 2/4, pero cambia cuáles casos se marcan."
      },
      {
        "id": "G",
        "label": "G · falta una de las clases",
        "raw": {
          "data": "P ; 0.9\nP ; 0.2",
          "threshold": "0.5"
        },
        "explanation": "No hay un negativo para formar pares: AUC no definido. La clasificación con umbral conocido sí tiene acierto 1/2."
      },
      {
        "id": "H",
        "label": "H · una referencia está pendiente",
        "raw": {
          "data": "P ; 0.4\n? ; 0.3\nN ; 0.2\nN ; 0.1",
          "threshold": "0.5"
        },
        "explanation": "El score permite marcar o no un caso, pero no inventa su clase de referencia. AUC y acierto del lote quedan pendientes."
      }
    ],
    "transfers": [
      {
        "id": "T1",
        "label": "Transferencia 1 · umbral sin completar",
        "raw": {
          "data": "P ; 0.4\nP ; 0.3\nN ; 0.2\nN ; 0.1",
          "threshold": ""
        },
        "explanation": "El orden por pares sigue completo y AUC 1 sigue conocido. Sin umbral, el porcentaje de aciertos no se calcula."
      },
      {
        "id": "T2",
        "label": "Transferencia 2 · empate con el umbral",
        "raw": {
          "data": "P ; 0.4\nP ; 0.3\nN ; 0.2\nN ; 0.1",
          "threshold": "0.3"
        },
        "explanation": "La regla ≥ marca también el score 0,3. Dos positivos marcados y dos negativos sin marcar: acierto 4/4."
      },
      {
        "id": "T3",
        "label": "Transferencia 3 · acierto mayor que AUC",
        "raw": {
          "data": "P ; 0.2\nN ; 0.8\nN ; 0.7\nN ; 0.1",
          "threshold": "1"
        },
        "explanation": "El positivo supera sólo a uno de tres negativos: AUC 1/3. Al marcar ninguno, acierto 3/4. Esto no vuelve adecuado ese umbral."
      },
      {
        "id": "T4",
        "label": "Transferencia 4 · falta un puntaje",
        "raw": {
          "data": "P ; ?\nN ; 0.1",
          "threshold": "0.5"
        },
        "explanation": "El registro no se completa con score 0 ni se elimina la fila. AUC y acierto quedan pendientes."
      },
      {
        "id": "T5",
        "label": "Transferencia 5 · coma decimal y puntajes negativos",
        "raw": {
          "data": "P ; -0,1\nP ; -0,2\nN ; -0,3\nN ; -0,4",
          "threshold": "-0,25"
        },
        "explanation": "Son puntajes, no probabilidades. El orden es perfecto y el umbral separa ambas clases: AUC 1 y acierto 1."
      },
      {
        "id": "T6",
        "label": "Transferencia 6 · clase fuera del contrato",
        "raw": {
          "data": "X ; 0.5\nN ; 0.1",
          "threshold": "0.5"
        },
        "explanation": "La etiqueta X no se interpreta como positivo, negativo o faltante."
      }
    ],
    "edge_cases": [
      {
        "id": "X1",
        "label": "Registro ausente",
        "raw": {
          "data": "",
          "threshold": "0.5"
        }
      },
      {
        "id": "X2",
        "label": "Umbral exponencial no admitido",
        "raw": {
          "data": "P ; 0.4\nP ; 0.3\nN ; 0.2\nN ; 0.1",
          "threshold": "1e-1"
        }
      },
      {
        "id": "X3",
        "label": "Puntaje fuera de rango",
        "raw": {
          "data": "P ; 101\nN ; 0",
          "threshold": "0.5"
        }
      },
      {
        "id": "X4",
        "label": "Precisión fuera del contrato",
        "raw": {
          "data": "P ; 0.001\nN ; 0",
          "threshold": "0.5"
        }
      },
      {
        "id": "X5",
        "label": "Sólo negativos",
        "raw": {
          "data": "N ; 0.1\nN ; 0.2",
          "threshold": "0.5"
        }
      },
      {
        "id": "X6",
        "label": "Referencias desconocidas",
        "raw": {
          "data": "? ; 0.5\n? ; 0.1",
          "threshold": "0.5"
        }
      },
      {
        "id": "X7",
        "label": "Ocho filas con empates",
        "raw": {
          "data": "P ; 1\nP ; 1\nP ; 0\nP ; 0\nN ; 1\nN ; 1\nN ; 0\nN ; 0",
          "threshold": "0.5"
        }
      },
      {
        "id": "X8",
        "label": "Filas en orden inverso",
        "raw": {
          "data": "N ; 0.1\nN ; 0.2\nP ; 0.3\nP ; 0.4",
          "threshold": "0.5"
        }
      }
    ],
    "grid": {
      "scores": [
        "0",
        "0.5",
        "1"
      ],
      "thresholds": [
        "",
        "0",
        "0.5",
        "1"
      ],
      "labels": [
        "P",
        "P",
        "N",
        "N"
      ]
    },
    "seed": {
      "data": "P ; 0.4\nP ; 0.3\nN ; 0.2\nN ; 0.1",
      "threshold": "0.5",
      "prediction": ""
    },
    "fields": [
      {
        "id": "data",
        "label": "Clase de referencia ; puntaje, una fila por caso",
        "kind": "textarea"
      },
      {
        "id": "threshold",
        "label": "Umbral t · decisión P si puntaje ≥ t",
        "kind": "input"
      },
      {
        "id": "prediction",
        "label": "Anticipá sólo la comparación de valores numéricos",
        "options": [
          [
            "higher",
            "AUC numéricamente mayor que el acierto"
          ],
          [
            "same",
            "AUC y acierto numéricamente iguales"
          ],
          [
            "lower",
            "AUC numéricamente menor que el acierto"
          ],
          [
            "auc_undefined",
            "AUC no definido: falta una de las clases"
          ],
          [
            "pending",
            "Comparación pendiente por datos faltantes"
          ]
        ]
      }
    ],
    "sections": [
      {
        "title": "1 · Dos preguntas para el mismo lote",
        "text": "El orden pregunta si un P recibe mayor puntaje que un N. La decisión pregunta de qué lado de un umbral queda cada caso. AUC, área bajo la curva ROC, resume el orden entre clases a lo largo de los cortes; el porcentaje de aciertos depende del umbral concreto. Ninguno reemplaza verificar las referencias o el objetivo de uso.",
        "sources": [
          0
        ]
      },
      {
        "title": "2 · Leé un cruce por vez",
        "text": "Elegí un P y un N del lote. Si el puntaje de P es mayor, el cruce gana 1 crédito; si es menor, gana 0; si son iguales, gana 1/2. Promediamos todos los cruces P/N. El medio empate corresponde a la ROC empírica con puntajes iguales que cambian juntos de lado y segmentos rectos entre sus puntos; no se desempatan filas a favor de una clase.",
        "sources": [
          1,
          2
        ]
      },
      {
        "title": "3 · Un orden perfecto puede coexistir con errores",
        "text": "A tiene dos P con puntajes 0,4 y 0,3 y dos N con 0,2 y 0,1. Los cuatro cruces favorecen P: AUC 1. Con umbral 0,5 no se marca ninguno; se aciertan los dos N y se omiten los dos P: 2/4, o 50 %. Cambiá sólo el umbral a 0,25: el AUC sigue en 1 y el acierto pasa a 4/4. Son cuentas sobre este lote ficticio, no una recomendación de corte."
      },
      {
        "title": "4 · Dos empates diferentes",
        "text": "En D todos los puntajes valen 0,5. Los cuatro cruces reciben 1/2 y AUC es 1/2. Para decidir clase usamos otra regla, explícita: puntaje igual al umbral también marca P. No se reparte medio caso. En E hay tres cruces ganados y uno empatado: (3 + 1/2)/4 = 7/8 de AUC.",
        "sources": [
          1,
          2
        ]
      },
      {
        "title": "5 · Separá desconocido de no definido",
        "text": "Sin umbral, AUC puede seguir conocido porque los puntajes no cambian. Sin una de las clases, no hay pares P/N y AUC no está definido, aunque el acierto sí pueda calcularse. Si falta una referencia o un puntaje, esta ayuda deja los resúmenes del lote pendientes y conserva la fila. Una decisión visible en un caso no confirma una referencia ausente."
      },
      {
        "title": "6 · Coincidir en el número no los vuelve equivalentes",
        "text": "La anticipación compara valores numéricos para comprobar que sabés reconstruirlos. No es una regla de aprobación: AUC y acierto tienen bases distintas. Un valor mayor no demuestra menor costo, mejor calibración, menos errores importantes o utilidad para una empresa. Una evaluación real requiere esas preguntas, evidencia y alcance propios."
      },
      {
        "title": "7 · Usá el laboratorio",
        "text": "Elegí una referencia para leer sin cambiar tu trabajo. Cargarla reemplaza las entradas y permite deshacer; tus notas se conservan. Editá clase/puntaje y umbral, anticipá y comprobá. P, N o ? para clase; números entre −100 y 100 con hasta dos decimales o ? para puntaje. Un umbral vacío se conserva pendiente; una entrada inválida retira el resultado anterior."
      }
    ],
    "technical": "Sean m positivos y n negativos con puntajes completos, orientados hacia P. AUC=(G+E/2)/(m·n), donde G cuenta cruces con scoreP>scoreN y E cruces empatados. Si m·n=0, AUC no está definido. Para un t dado, decisión P si score≥t; exactitud=(VP+VN)/N. La comparación numérica usa fracciones exactas por productos cruzados, sin redondear porcentajes. En JavaScript se suman créditos de todos los pares usando enteros de centésimas. Python Fraction usa un camino independiente: ordena puntajes distintos, mueve simultáneamente todas las filas empatadas, construye puntos (FP/n,VP/m) desde (0,0) y suma trapecios ΔFPR·(TPRprev+TPRactual)/2. El primer umbral nulo del archivo de referencia es sólo el origen conceptual que no marca nada, no un dato faltante del alumno. La documentación 1.9.1 de scikit-learn se consultó como referencia; no se ejecutó esa biblioteca. Con referencias/puntajes ausentes se retienen decisiones por fila que sí puedan conocerse, pero los totales de todo el lote quedan pendientes. El modelo es binario, sin pesos, AUC parcial, calibración, selección de umbral o inferencia poblacional.",
    "transfer": "Compará T1, que deja vacío el umbral, con T2, que lo fija exactamente en 0,3. Después explicá T3: AUC 1/3 y acierto 3/4 al no marcar ningún caso. T5 permite repetir la lectura con coma decimal y puntajes negativos sin llamarlos probabilidades.",
    "criterion": "T1 conserva AUC 1 y acierto pendiente. T2 marca P también al empatar con t=0,3 y logra 4/4 en el lote. T3 gana sólo uno de tres cruces y, al decidir N para todos, acierta tres de cuatro casos; eso no aprueba el corte. T5 tiene AUC 1 y acierto 1. Una explicación suficiente nombra clase positiva, orientación, cruces/empates, umbral y base de acierto; no traduce AUC 1 en garantía de decisiones correctas o probabilidades calibradas.",
    "files": [
      "cases.json",
      "reference.py",
      "reference-results.json",
      "REPRODUCIR.txt",
      "lab.js",
      "lab.test.cjs",
      "units.json"
    ],
    "limit": "Extensión opcional de lectura de métricas para revisar pilotos. Entre 2 y 8 casos ficticios, puntajes acotados, clasificación binaria sin pesos y ROC-AUC empírico completo con medio empate. No modelo entrenado, salida de una IA, referencia real verificada, probabilidades calibradas, PR-AUC, clasificación multiclase, costo, optimización de umbral, causalidad, inferencia o aprobación operativa. Documentación primaria leída focalmente el 17/11/2026; sin ejecutar scikit-learn ni copiar ejemplos o imágenes. Sin datos privados, cuentas, almacenamiento o APIs. No hay eficacia con estudiantes medida.",
    "course_title": "IA para Negocios",
    "examples": [
      {
        "id": "A",
        "label": "A · orden perfecto, umbral que no elige ninguno",
        "explanation": "Los cuatro pares P/N se ordenan bien: AUC 1. El umbral 0,5 no marca ningún positivo y acierta sólo los dos negativos:2/4.",
        "input": {
          "data": "P ; 0.4\nP ; 0.3\nN ; 0.2\nN ; 0.1",
          "threshold": "0.5",
          "prediction": "higher"
        },
        "result": {
          "ok": true,
          "state": "higher",
          "input": {
            "data": "P ; 0.4\nP ; 0.3\nN ; 0.2\nN ; 0.1",
            "threshold": "0.5",
            "prediction": "higher"
          },
          "errors": [],
          "rows": [
            {
              "id": "F1",
              "label": "P",
              "score": [
                "2",
                "5"
              ],
              "score_text": "0.4",
              "decision": "N",
              "correct": false
            },
            {
              "id": "F2",
              "label": "P",
              "score": [
                "3",
                "10"
              ],
              "score_text": "0.3",
              "decision": "N",
              "correct": false
            },
            {
              "id": "F3",
              "label": "N",
              "score": [
                "1",
                "5"
              ],
              "score_text": "0.2",
              "decision": "N",
              "correct": true
            },
            {
              "id": "F4",
              "label": "N",
              "score": [
                "1",
                "10"
              ],
              "score_text": "0.1",
              "decision": "N",
              "correct": true
            }
          ],
          "auc": {
            "state": "defined",
            "positives": 2,
            "negatives": 2,
            "pair_count": 4,
            "wins": 4,
            "ties": 0,
            "losses": 0,
            "fraction": [
              "1",
              "1"
            ]
          },
          "pairs": [
            {
              "positive": "F1",
              "negative": "F3",
              "positive_score": [
                "2",
                "5"
              ],
              "negative_score": [
                "1",
                "5"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F1",
              "negative": "F4",
              "positive_score": [
                "2",
                "5"
              ],
              "negative_score": [
                "1",
                "10"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F2",
              "negative": "F3",
              "positive_score": [
                "3",
                "10"
              ],
              "negative_score": [
                "1",
                "5"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F2",
              "negative": "F4",
              "positive_score": [
                "3",
                "10"
              ],
              "negative_score": [
                "1",
                "10"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            }
          ],
          "classification": {
            "state": "defined",
            "threshold": [
              "1",
              "2"
            ],
            "tp": 0,
            "tn": 2,
            "fp": 0,
            "fn": 2,
            "accuracy": [
              "1",
              "2"
            ]
          },
          "prediction_valid": true,
          "prediction_correct": true
        }
      },
      {
        "id": "B",
        "label": "B · mismo AUC, otro porcentaje de aciertos",
        "explanation": "El orden y AUC 1 se conservan. Con umbral 0,25 se clasifican bien los cuatro casos:4/4.",
        "input": {
          "data": "P ; 0.4\nP ; 0.3\nN ; 0.2\nN ; 0.1",
          "threshold": "0.25",
          "prediction": "same"
        },
        "result": {
          "ok": true,
          "state": "same",
          "input": {
            "data": "P ; 0.4\nP ; 0.3\nN ; 0.2\nN ; 0.1",
            "threshold": "0.25",
            "prediction": "same"
          },
          "errors": [],
          "rows": [
            {
              "id": "F1",
              "label": "P",
              "score": [
                "2",
                "5"
              ],
              "score_text": "0.4",
              "decision": "P",
              "correct": true
            },
            {
              "id": "F2",
              "label": "P",
              "score": [
                "3",
                "10"
              ],
              "score_text": "0.3",
              "decision": "P",
              "correct": true
            },
            {
              "id": "F3",
              "label": "N",
              "score": [
                "1",
                "5"
              ],
              "score_text": "0.2",
              "decision": "N",
              "correct": true
            },
            {
              "id": "F4",
              "label": "N",
              "score": [
                "1",
                "10"
              ],
              "score_text": "0.1",
              "decision": "N",
              "correct": true
            }
          ],
          "auc": {
            "state": "defined",
            "positives": 2,
            "negatives": 2,
            "pair_count": 4,
            "wins": 4,
            "ties": 0,
            "losses": 0,
            "fraction": [
              "1",
              "1"
            ]
          },
          "pairs": [
            {
              "positive": "F1",
              "negative": "F3",
              "positive_score": [
                "2",
                "5"
              ],
              "negative_score": [
                "1",
                "5"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F1",
              "negative": "F4",
              "positive_score": [
                "2",
                "5"
              ],
              "negative_score": [
                "1",
                "10"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F2",
              "negative": "F3",
              "positive_score": [
                "3",
                "10"
              ],
              "negative_score": [
                "1",
                "5"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F2",
              "negative": "F4",
              "positive_score": [
                "3",
                "10"
              ],
              "negative_score": [
                "1",
                "10"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            }
          ],
          "classification": {
            "state": "defined",
            "threshold": [
              "1",
              "4"
            ],
            "tp": 2,
            "tn": 2,
            "fp": 0,
            "fn": 0,
            "accuracy": [
              "1",
              "1"
            ]
          },
          "prediction_valid": true,
          "prediction_correct": true
        }
      },
      {
        "id": "C",
        "label": "C · orden invertido",
        "explanation": "Ningún par favorece al positivo: AUC 0. Con umbral 0,5 todos quedan en la clase contraria: acierto 0/4.",
        "input": {
          "data": "P ; 0.1\nP ; 0.2\nN ; 0.8\nN ; 0.9",
          "threshold": "0.5",
          "prediction": "same"
        },
        "result": {
          "ok": true,
          "state": "same",
          "input": {
            "data": "P ; 0.1\nP ; 0.2\nN ; 0.8\nN ; 0.9",
            "threshold": "0.5",
            "prediction": "same"
          },
          "errors": [],
          "rows": [
            {
              "id": "F1",
              "label": "P",
              "score": [
                "1",
                "10"
              ],
              "score_text": "0.1",
              "decision": "N",
              "correct": false
            },
            {
              "id": "F2",
              "label": "P",
              "score": [
                "1",
                "5"
              ],
              "score_text": "0.2",
              "decision": "N",
              "correct": false
            },
            {
              "id": "F3",
              "label": "N",
              "score": [
                "4",
                "5"
              ],
              "score_text": "0.8",
              "decision": "P",
              "correct": false
            },
            {
              "id": "F4",
              "label": "N",
              "score": [
                "9",
                "10"
              ],
              "score_text": "0.9",
              "decision": "P",
              "correct": false
            }
          ],
          "auc": {
            "state": "defined",
            "positives": 2,
            "negatives": 2,
            "pair_count": 4,
            "wins": 0,
            "ties": 0,
            "losses": 4,
            "fraction": [
              "0",
              "1"
            ]
          },
          "pairs": [
            {
              "positive": "F1",
              "negative": "F3",
              "positive_score": [
                "1",
                "10"
              ],
              "negative_score": [
                "4",
                "5"
              ],
              "relation": "loss",
              "credit": [
                "0",
                "1"
              ]
            },
            {
              "positive": "F1",
              "negative": "F4",
              "positive_score": [
                "1",
                "10"
              ],
              "negative_score": [
                "9",
                "10"
              ],
              "relation": "loss",
              "credit": [
                "0",
                "1"
              ]
            },
            {
              "positive": "F2",
              "negative": "F3",
              "positive_score": [
                "1",
                "5"
              ],
              "negative_score": [
                "4",
                "5"
              ],
              "relation": "loss",
              "credit": [
                "0",
                "1"
              ]
            },
            {
              "positive": "F2",
              "negative": "F4",
              "positive_score": [
                "1",
                "5"
              ],
              "negative_score": [
                "9",
                "10"
              ],
              "relation": "loss",
              "credit": [
                "0",
                "1"
              ]
            }
          ],
          "classification": {
            "state": "defined",
            "threshold": [
              "1",
              "2"
            ],
            "tp": 0,
            "tn": 0,
            "fp": 2,
            "fn": 2,
            "accuracy": [
              "0",
              "1"
            ]
          },
          "prediction_valid": true,
          "prediction_correct": true
        }
      },
      {
        "id": "D",
        "label": "D · todos los puntajes empatados",
        "explanation": "Cada par recibe medio crédito: AUC 1/2. La regla ≥ incluye el empate con el umbral y marca todos positivos: acierto 2/4.",
        "input": {
          "data": "P ; 0.5\nP ; 0.5\nN ; 0.5\nN ; 0.5",
          "threshold": "0.5",
          "prediction": "same"
        },
        "result": {
          "ok": true,
          "state": "same",
          "input": {
            "data": "P ; 0.5\nP ; 0.5\nN ; 0.5\nN ; 0.5",
            "threshold": "0.5",
            "prediction": "same"
          },
          "errors": [],
          "rows": [
            {
              "id": "F1",
              "label": "P",
              "score": [
                "1",
                "2"
              ],
              "score_text": "0.5",
              "decision": "P",
              "correct": true
            },
            {
              "id": "F2",
              "label": "P",
              "score": [
                "1",
                "2"
              ],
              "score_text": "0.5",
              "decision": "P",
              "correct": true
            },
            {
              "id": "F3",
              "label": "N",
              "score": [
                "1",
                "2"
              ],
              "score_text": "0.5",
              "decision": "P",
              "correct": false
            },
            {
              "id": "F4",
              "label": "N",
              "score": [
                "1",
                "2"
              ],
              "score_text": "0.5",
              "decision": "P",
              "correct": false
            }
          ],
          "auc": {
            "state": "defined",
            "positives": 2,
            "negatives": 2,
            "pair_count": 4,
            "wins": 0,
            "ties": 4,
            "losses": 0,
            "fraction": [
              "1",
              "2"
            ]
          },
          "pairs": [
            {
              "positive": "F1",
              "negative": "F3",
              "positive_score": [
                "1",
                "2"
              ],
              "negative_score": [
                "1",
                "2"
              ],
              "relation": "tie",
              "credit": [
                "1",
                "2"
              ]
            },
            {
              "positive": "F1",
              "negative": "F4",
              "positive_score": [
                "1",
                "2"
              ],
              "negative_score": [
                "1",
                "2"
              ],
              "relation": "tie",
              "credit": [
                "1",
                "2"
              ]
            },
            {
              "positive": "F2",
              "negative": "F3",
              "positive_score": [
                "1",
                "2"
              ],
              "negative_score": [
                "1",
                "2"
              ],
              "relation": "tie",
              "credit": [
                "1",
                "2"
              ]
            },
            {
              "positive": "F2",
              "negative": "F4",
              "positive_score": [
                "1",
                "2"
              ],
              "negative_score": [
                "1",
                "2"
              ],
              "relation": "tie",
              "credit": [
                "1",
                "2"
              ]
            }
          ],
          "classification": {
            "state": "defined",
            "threshold": [
              "1",
              "2"
            ],
            "tp": 2,
            "tn": 0,
            "fp": 2,
            "fn": 0,
            "accuracy": [
              "1",
              "2"
            ]
          },
          "prediction_valid": true,
          "prediction_correct": true
        }
      },
      {
        "id": "E",
        "label": "E · empate en uno de los pares",
        "explanation": "Tres pares ganados y uno empatado dan AUC 7/8. El acierto con umbral 0,5 es 3/4.",
        "input": {
          "data": "P ; 0.8\nP ; 0.4\nN ; 0.4\nN ; 0.2",
          "threshold": "0.5",
          "prediction": "higher"
        },
        "result": {
          "ok": true,
          "state": "higher",
          "input": {
            "data": "P ; 0.8\nP ; 0.4\nN ; 0.4\nN ; 0.2",
            "threshold": "0.5",
            "prediction": "higher"
          },
          "errors": [],
          "rows": [
            {
              "id": "F1",
              "label": "P",
              "score": [
                "4",
                "5"
              ],
              "score_text": "0.8",
              "decision": "P",
              "correct": true
            },
            {
              "id": "F2",
              "label": "P",
              "score": [
                "2",
                "5"
              ],
              "score_text": "0.4",
              "decision": "N",
              "correct": false
            },
            {
              "id": "F3",
              "label": "N",
              "score": [
                "2",
                "5"
              ],
              "score_text": "0.4",
              "decision": "N",
              "correct": true
            },
            {
              "id": "F4",
              "label": "N",
              "score": [
                "1",
                "5"
              ],
              "score_text": "0.2",
              "decision": "N",
              "correct": true
            }
          ],
          "auc": {
            "state": "defined",
            "positives": 2,
            "negatives": 2,
            "pair_count": 4,
            "wins": 3,
            "ties": 1,
            "losses": 0,
            "fraction": [
              "7",
              "8"
            ]
          },
          "pairs": [
            {
              "positive": "F1",
              "negative": "F3",
              "positive_score": [
                "4",
                "5"
              ],
              "negative_score": [
                "2",
                "5"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F1",
              "negative": "F4",
              "positive_score": [
                "4",
                "5"
              ],
              "negative_score": [
                "1",
                "5"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F2",
              "negative": "F3",
              "positive_score": [
                "2",
                "5"
              ],
              "negative_score": [
                "2",
                "5"
              ],
              "relation": "tie",
              "credit": [
                "1",
                "2"
              ]
            },
            {
              "positive": "F2",
              "negative": "F4",
              "positive_score": [
                "2",
                "5"
              ],
              "negative_score": [
                "1",
                "5"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            }
          ],
          "classification": {
            "state": "defined",
            "threshold": [
              "1",
              "2"
            ],
            "tp": 1,
            "tn": 2,
            "fp": 0,
            "fn": 1,
            "accuracy": [
              "3",
              "4"
            ]
          },
          "prediction_valid": true,
          "prediction_correct": true
        }
      },
      {
        "id": "F",
        "label": "F · otro rango de puntajes, mismo orden",
        "explanation": "El orden es el mismo que A, con AUC 1. El mismo umbral 0,5 ahora marca todos positivos. Acierto 2/4, pero cambia cuáles casos se marcan.",
        "input": {
          "data": "P ; 0.9\nP ; 0.8\nN ; 0.7\nN ; 0.6",
          "threshold": "0.5",
          "prediction": "higher"
        },
        "result": {
          "ok": true,
          "state": "higher",
          "input": {
            "data": "P ; 0.9\nP ; 0.8\nN ; 0.7\nN ; 0.6",
            "threshold": "0.5",
            "prediction": "higher"
          },
          "errors": [],
          "rows": [
            {
              "id": "F1",
              "label": "P",
              "score": [
                "9",
                "10"
              ],
              "score_text": "0.9",
              "decision": "P",
              "correct": true
            },
            {
              "id": "F2",
              "label": "P",
              "score": [
                "4",
                "5"
              ],
              "score_text": "0.8",
              "decision": "P",
              "correct": true
            },
            {
              "id": "F3",
              "label": "N",
              "score": [
                "7",
                "10"
              ],
              "score_text": "0.7",
              "decision": "P",
              "correct": false
            },
            {
              "id": "F4",
              "label": "N",
              "score": [
                "3",
                "5"
              ],
              "score_text": "0.6",
              "decision": "P",
              "correct": false
            }
          ],
          "auc": {
            "state": "defined",
            "positives": 2,
            "negatives": 2,
            "pair_count": 4,
            "wins": 4,
            "ties": 0,
            "losses": 0,
            "fraction": [
              "1",
              "1"
            ]
          },
          "pairs": [
            {
              "positive": "F1",
              "negative": "F3",
              "positive_score": [
                "9",
                "10"
              ],
              "negative_score": [
                "7",
                "10"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F1",
              "negative": "F4",
              "positive_score": [
                "9",
                "10"
              ],
              "negative_score": [
                "3",
                "5"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F2",
              "negative": "F3",
              "positive_score": [
                "4",
                "5"
              ],
              "negative_score": [
                "7",
                "10"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F2",
              "negative": "F4",
              "positive_score": [
                "4",
                "5"
              ],
              "negative_score": [
                "3",
                "5"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            }
          ],
          "classification": {
            "state": "defined",
            "threshold": [
              "1",
              "2"
            ],
            "tp": 2,
            "tn": 0,
            "fp": 2,
            "fn": 0,
            "accuracy": [
              "1",
              "2"
            ]
          },
          "prediction_valid": true,
          "prediction_correct": true
        }
      },
      {
        "id": "G",
        "label": "G · falta una de las clases",
        "explanation": "No hay un negativo para formar pares: AUC no definido. La clasificación con umbral conocido sí tiene acierto 1/2.",
        "input": {
          "data": "P ; 0.9\nP ; 0.2",
          "threshold": "0.5",
          "prediction": "auc_undefined"
        },
        "result": {
          "ok": true,
          "state": "auc_undefined",
          "input": {
            "data": "P ; 0.9\nP ; 0.2",
            "threshold": "0.5",
            "prediction": "auc_undefined"
          },
          "errors": [],
          "rows": [
            {
              "id": "F1",
              "label": "P",
              "score": [
                "9",
                "10"
              ],
              "score_text": "0.9",
              "decision": "P",
              "correct": true
            },
            {
              "id": "F2",
              "label": "P",
              "score": [
                "1",
                "5"
              ],
              "score_text": "0.2",
              "decision": "N",
              "correct": false
            }
          ],
          "auc": {
            "state": "undefined",
            "positives": 2,
            "negatives": 0,
            "pair_count": 0,
            "wins": 0,
            "ties": 0,
            "losses": 0,
            "fraction": null
          },
          "pairs": [],
          "classification": {
            "state": "defined",
            "threshold": [
              "1",
              "2"
            ],
            "tp": 1,
            "tn": 0,
            "fp": 0,
            "fn": 1,
            "accuracy": [
              "1",
              "2"
            ]
          },
          "prediction_valid": true,
          "prediction_correct": true
        }
      },
      {
        "id": "H",
        "label": "H · una referencia está pendiente",
        "explanation": "El score permite marcar o no un caso, pero no inventa su clase de referencia. AUC y acierto del lote quedan pendientes.",
        "input": {
          "data": "P ; 0.4\n? ; 0.3\nN ; 0.2\nN ; 0.1",
          "threshold": "0.5",
          "prediction": "pending"
        },
        "result": {
          "ok": true,
          "state": "pending",
          "input": {
            "data": "P ; 0.4\n? ; 0.3\nN ; 0.2\nN ; 0.1",
            "threshold": "0.5",
            "prediction": "pending"
          },
          "errors": [],
          "rows": [
            {
              "id": "F1",
              "label": "P",
              "score": [
                "2",
                "5"
              ],
              "score_text": "0.4",
              "decision": "N",
              "correct": false
            },
            {
              "id": "F2",
              "label": "?",
              "score": [
                "3",
                "10"
              ],
              "score_text": "0.3",
              "decision": "N",
              "correct": null
            },
            {
              "id": "F3",
              "label": "N",
              "score": [
                "1",
                "5"
              ],
              "score_text": "0.2",
              "decision": "N",
              "correct": true
            },
            {
              "id": "F4",
              "label": "N",
              "score": [
                "1",
                "10"
              ],
              "score_text": "0.1",
              "decision": "N",
              "correct": true
            }
          ],
          "auc": {
            "state": "pending",
            "positives": null,
            "negatives": null,
            "pair_count": null,
            "wins": null,
            "ties": null,
            "losses": null,
            "fraction": null
          },
          "pairs": [],
          "classification": {
            "state": "pending",
            "threshold": [
              "1",
              "2"
            ],
            "tp": null,
            "tn": null,
            "fp": null,
            "fn": null,
            "accuracy": null
          },
          "prediction_valid": true,
          "prediction_correct": true
        }
      }
    ],
    "transfer_examples": [
      {
        "id": "T1",
        "label": "Transferencia 1 · umbral sin completar",
        "explanation": "El orden por pares sigue completo y AUC 1 sigue conocido. Sin umbral, el porcentaje de aciertos no se calcula.",
        "input": {
          "data": "P ; 0.4\nP ; 0.3\nN ; 0.2\nN ; 0.1",
          "threshold": "",
          "prediction": "pending"
        },
        "result": {
          "ok": true,
          "state": "pending",
          "input": {
            "data": "P ; 0.4\nP ; 0.3\nN ; 0.2\nN ; 0.1",
            "threshold": "",
            "prediction": "pending"
          },
          "errors": [],
          "rows": [
            {
              "id": "F1",
              "label": "P",
              "score": [
                "2",
                "5"
              ],
              "score_text": "0.4",
              "decision": null,
              "correct": null
            },
            {
              "id": "F2",
              "label": "P",
              "score": [
                "3",
                "10"
              ],
              "score_text": "0.3",
              "decision": null,
              "correct": null
            },
            {
              "id": "F3",
              "label": "N",
              "score": [
                "1",
                "5"
              ],
              "score_text": "0.2",
              "decision": null,
              "correct": null
            },
            {
              "id": "F4",
              "label": "N",
              "score": [
                "1",
                "10"
              ],
              "score_text": "0.1",
              "decision": null,
              "correct": null
            }
          ],
          "auc": {
            "state": "defined",
            "positives": 2,
            "negatives": 2,
            "pair_count": 4,
            "wins": 4,
            "ties": 0,
            "losses": 0,
            "fraction": [
              "1",
              "1"
            ]
          },
          "pairs": [
            {
              "positive": "F1",
              "negative": "F3",
              "positive_score": [
                "2",
                "5"
              ],
              "negative_score": [
                "1",
                "5"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F1",
              "negative": "F4",
              "positive_score": [
                "2",
                "5"
              ],
              "negative_score": [
                "1",
                "10"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F2",
              "negative": "F3",
              "positive_score": [
                "3",
                "10"
              ],
              "negative_score": [
                "1",
                "5"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F2",
              "negative": "F4",
              "positive_score": [
                "3",
                "10"
              ],
              "negative_score": [
                "1",
                "10"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            }
          ],
          "classification": {
            "state": "pending",
            "threshold": null,
            "tp": null,
            "tn": null,
            "fp": null,
            "fn": null,
            "accuracy": null
          },
          "prediction_valid": true,
          "prediction_correct": true
        }
      },
      {
        "id": "T2",
        "label": "Transferencia 2 · empate con el umbral",
        "explanation": "La regla ≥ marca también el score 0,3. Dos positivos marcados y dos negativos sin marcar: acierto 4/4.",
        "input": {
          "data": "P ; 0.4\nP ; 0.3\nN ; 0.2\nN ; 0.1",
          "threshold": "0.3",
          "prediction": "same"
        },
        "result": {
          "ok": true,
          "state": "same",
          "input": {
            "data": "P ; 0.4\nP ; 0.3\nN ; 0.2\nN ; 0.1",
            "threshold": "0.3",
            "prediction": "same"
          },
          "errors": [],
          "rows": [
            {
              "id": "F1",
              "label": "P",
              "score": [
                "2",
                "5"
              ],
              "score_text": "0.4",
              "decision": "P",
              "correct": true
            },
            {
              "id": "F2",
              "label": "P",
              "score": [
                "3",
                "10"
              ],
              "score_text": "0.3",
              "decision": "P",
              "correct": true
            },
            {
              "id": "F3",
              "label": "N",
              "score": [
                "1",
                "5"
              ],
              "score_text": "0.2",
              "decision": "N",
              "correct": true
            },
            {
              "id": "F4",
              "label": "N",
              "score": [
                "1",
                "10"
              ],
              "score_text": "0.1",
              "decision": "N",
              "correct": true
            }
          ],
          "auc": {
            "state": "defined",
            "positives": 2,
            "negatives": 2,
            "pair_count": 4,
            "wins": 4,
            "ties": 0,
            "losses": 0,
            "fraction": [
              "1",
              "1"
            ]
          },
          "pairs": [
            {
              "positive": "F1",
              "negative": "F3",
              "positive_score": [
                "2",
                "5"
              ],
              "negative_score": [
                "1",
                "5"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F1",
              "negative": "F4",
              "positive_score": [
                "2",
                "5"
              ],
              "negative_score": [
                "1",
                "10"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F2",
              "negative": "F3",
              "positive_score": [
                "3",
                "10"
              ],
              "negative_score": [
                "1",
                "5"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F2",
              "negative": "F4",
              "positive_score": [
                "3",
                "10"
              ],
              "negative_score": [
                "1",
                "10"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            }
          ],
          "classification": {
            "state": "defined",
            "threshold": [
              "3",
              "10"
            ],
            "tp": 2,
            "tn": 2,
            "fp": 0,
            "fn": 0,
            "accuracy": [
              "1",
              "1"
            ]
          },
          "prediction_valid": true,
          "prediction_correct": true
        }
      },
      {
        "id": "T3",
        "label": "Transferencia 3 · acierto mayor que AUC",
        "explanation": "El positivo supera sólo a uno de tres negativos: AUC 1/3. Al marcar ninguno, acierto 3/4. Esto no vuelve adecuado ese umbral.",
        "input": {
          "data": "P ; 0.2\nN ; 0.8\nN ; 0.7\nN ; 0.1",
          "threshold": "1",
          "prediction": "lower"
        },
        "result": {
          "ok": true,
          "state": "lower",
          "input": {
            "data": "P ; 0.2\nN ; 0.8\nN ; 0.7\nN ; 0.1",
            "threshold": "1",
            "prediction": "lower"
          },
          "errors": [],
          "rows": [
            {
              "id": "F1",
              "label": "P",
              "score": [
                "1",
                "5"
              ],
              "score_text": "0.2",
              "decision": "N",
              "correct": false
            },
            {
              "id": "F2",
              "label": "N",
              "score": [
                "4",
                "5"
              ],
              "score_text": "0.8",
              "decision": "N",
              "correct": true
            },
            {
              "id": "F3",
              "label": "N",
              "score": [
                "7",
                "10"
              ],
              "score_text": "0.7",
              "decision": "N",
              "correct": true
            },
            {
              "id": "F4",
              "label": "N",
              "score": [
                "1",
                "10"
              ],
              "score_text": "0.1",
              "decision": "N",
              "correct": true
            }
          ],
          "auc": {
            "state": "defined",
            "positives": 1,
            "negatives": 3,
            "pair_count": 3,
            "wins": 1,
            "ties": 0,
            "losses": 2,
            "fraction": [
              "1",
              "3"
            ]
          },
          "pairs": [
            {
              "positive": "F1",
              "negative": "F2",
              "positive_score": [
                "1",
                "5"
              ],
              "negative_score": [
                "4",
                "5"
              ],
              "relation": "loss",
              "credit": [
                "0",
                "1"
              ]
            },
            {
              "positive": "F1",
              "negative": "F3",
              "positive_score": [
                "1",
                "5"
              ],
              "negative_score": [
                "7",
                "10"
              ],
              "relation": "loss",
              "credit": [
                "0",
                "1"
              ]
            },
            {
              "positive": "F1",
              "negative": "F4",
              "positive_score": [
                "1",
                "5"
              ],
              "negative_score": [
                "1",
                "10"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            }
          ],
          "classification": {
            "state": "defined",
            "threshold": [
              "1",
              "1"
            ],
            "tp": 0,
            "tn": 3,
            "fp": 0,
            "fn": 1,
            "accuracy": [
              "3",
              "4"
            ]
          },
          "prediction_valid": true,
          "prediction_correct": true
        }
      },
      {
        "id": "T4",
        "label": "Transferencia 4 · falta un puntaje",
        "explanation": "El registro no se completa con score 0 ni se elimina la fila. AUC y acierto quedan pendientes.",
        "input": {
          "data": "P ; ?\nN ; 0.1",
          "threshold": "0.5",
          "prediction": "pending"
        },
        "result": {
          "ok": true,
          "state": "pending",
          "input": {
            "data": "P ; ?\nN ; 0.1",
            "threshold": "0.5",
            "prediction": "pending"
          },
          "errors": [],
          "rows": [
            {
              "id": "F1",
              "label": "P",
              "score": null,
              "score_text": "?",
              "decision": null,
              "correct": null
            },
            {
              "id": "F2",
              "label": "N",
              "score": [
                "1",
                "10"
              ],
              "score_text": "0.1",
              "decision": "N",
              "correct": true
            }
          ],
          "auc": {
            "state": "pending",
            "positives": null,
            "negatives": null,
            "pair_count": null,
            "wins": null,
            "ties": null,
            "losses": null,
            "fraction": null
          },
          "pairs": [],
          "classification": {
            "state": "pending",
            "threshold": [
              "1",
              "2"
            ],
            "tp": null,
            "tn": null,
            "fp": null,
            "fn": null,
            "accuracy": null
          },
          "prediction_valid": true,
          "prediction_correct": true
        }
      },
      {
        "id": "T5",
        "label": "Transferencia 5 · coma decimal y puntajes negativos",
        "explanation": "Son puntajes, no probabilidades. El orden es perfecto y el umbral separa ambas clases: AUC 1 y acierto 1.",
        "input": {
          "data": "P ; -0,1\nP ; -0,2\nN ; -0,3\nN ; -0,4",
          "threshold": "-0,25",
          "prediction": "same"
        },
        "result": {
          "ok": true,
          "state": "same",
          "input": {
            "data": "P ; -0,1\nP ; -0,2\nN ; -0,3\nN ; -0,4",
            "threshold": "-0,25",
            "prediction": "same"
          },
          "errors": [],
          "rows": [
            {
              "id": "F1",
              "label": "P",
              "score": [
                "-1",
                "10"
              ],
              "score_text": "-0,1",
              "decision": "P",
              "correct": true
            },
            {
              "id": "F2",
              "label": "P",
              "score": [
                "-1",
                "5"
              ],
              "score_text": "-0,2",
              "decision": "P",
              "correct": true
            },
            {
              "id": "F3",
              "label": "N",
              "score": [
                "-3",
                "10"
              ],
              "score_text": "-0,3",
              "decision": "N",
              "correct": true
            },
            {
              "id": "F4",
              "label": "N",
              "score": [
                "-2",
                "5"
              ],
              "score_text": "-0,4",
              "decision": "N",
              "correct": true
            }
          ],
          "auc": {
            "state": "defined",
            "positives": 2,
            "negatives": 2,
            "pair_count": 4,
            "wins": 4,
            "ties": 0,
            "losses": 0,
            "fraction": [
              "1",
              "1"
            ]
          },
          "pairs": [
            {
              "positive": "F1",
              "negative": "F3",
              "positive_score": [
                "-1",
                "10"
              ],
              "negative_score": [
                "-3",
                "10"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F1",
              "negative": "F4",
              "positive_score": [
                "-1",
                "10"
              ],
              "negative_score": [
                "-2",
                "5"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F2",
              "negative": "F3",
              "positive_score": [
                "-1",
                "5"
              ],
              "negative_score": [
                "-3",
                "10"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            },
            {
              "positive": "F2",
              "negative": "F4",
              "positive_score": [
                "-1",
                "5"
              ],
              "negative_score": [
                "-2",
                "5"
              ],
              "relation": "win",
              "credit": [
                "1",
                "1"
              ]
            }
          ],
          "classification": {
            "state": "defined",
            "threshold": [
              "-1",
              "4"
            ],
            "tp": 2,
            "tn": 2,
            "fp": 0,
            "fn": 0,
            "accuracy": [
              "1",
              "1"
            ]
          },
          "prediction_valid": true,
          "prediction_correct": true
        }
      },
      {
        "id": "T6",
        "label": "Transferencia 6 · clase fuera del contrato",
        "explanation": "La etiqueta X no se interpreta como positivo, negativo o faltante.",
        "input": {
          "data": "X ; 0.5\nN ; 0.1",
          "threshold": "0.5",
          "prediction": ""
        },
        "result": {
          "ok": false,
          "state": "invalid",
          "input": {
            "data": "X ; 0.5\nN ; 0.1",
            "threshold": "0.5",
            "prediction": ""
          },
          "errors": [
            "Fila 1: clase P, N o ?; puntaje entre −100 y 100 con hasta dos decimales, coma o punto, o ?. Separá ambos campos con ;."
          ],
          "rows": [],
          "auc": null,
          "pairs": [],
          "classification": null,
          "prediction_valid": false,
          "prediction_correct": false
        }
      }
    ]
  }
]
