dr-opoku/resqmonitorInterface only · no calculations in the browser
github.com/dr-opoku/resqmonitor

Monitor prediction accuracy, costs and response times

Review predictions against actual outcomes: accuracy, outcome coverage, confidence, cost per correct result, latency and changes from a baseline. Calculations remain with the Python program.

pip install resqmonitor · python -m resqmonitor

Interface preview

This mock-up shows what a browser interface for the tools could look like. It is not yet connected to the Python tools and does not run their calculations. To use the tools, download and run the code from the respective GitHub repository: github.com/dr-opoku/resqmonitor

The code is available under a non-commercial license. Commercial use requires a separate license.

01

Inputs

Required current records and an optional baseline in the same format.

csv – current records

ID, prediction, actual outcome; optional confidence, cost, latency_ms, group

--baseline – comparison records

ID, prediction, actual outcome; optional confidence, cost, latency_ms, group

02

Configuration

Partial configurations are allowed; each role must use a distinct column.

✓ Configuration is valid.

Column roles

Accuracy & coverage

Comparison, costs & latency

evidence_context – declared context

config.json preview
{
  "dataset_name": "Local classification results",
  "id_column": "record_id",
  "prediction_column": "predicted_label",
  "outcome_column": "actual_label",
  "confidence_column": "confidence",
  "cost_column": "cost",
  "latency_column": "latency_ms",
  "group_column": "group",
  "cost_unit": "EUR",
  "min_evaluated_rows": 30,
  "min_accuracy_pct": 85,
  "accuracy_threshold_basis": "point_estimate",
  "evidence_context": {},
  "min_outcome_coverage_pct": 90,
  "max_confidence_gap_pp": 10,
  "allowed_accuracy_drop_pp": 10,
  "max_case_mix_shift_pct": 20,
  "max_cost_per_correct": null,
  "max_mean_latency_ms": null
}
03

Command

Prepare the command for the Python program.

resqmonitor check results.csv --config config.json --format json --output report.json
exitmeaning
0Report generated
1--require-ok and status ≠ ok
2Invalid input (INVALID_INPUT)
04

Report

schema_version 2.0 · accuracy, outcome_coverage, confidence_alignment, cost_per_correct, latency, baseline_accuracy, case_mix

Import the report from resqmonitor … --format json --output report.json here.