WetShoreCodeforces

How far to trust the score

All figures below are computed on the holdout set, which the model did not see during training or calibration. The model gives a signal for manual review and must not ban automatically.

Production model: data/model.json

Holdout ROC-AUC
0.871
Players in holdout
3258
Of them cheaters
674
Reference built
24.09.2026 20:54

The cost of error at each threshold. The higher the threshold, the fewer honest players fall under suspicion, but fewer cheaters are caught too.

ThresholdFlags honest (FPR)Catches cheaters (recall)False on holdout
0.307.1%59.9%~184 of 2584
0.405.6%54.0%~145 of 2584
0.50 (current)5.2%52.5%~134 of 2584
0.603.0%41.8%~77 of 2584
0.702.4%37.7%~62 of 2584
0.801.0%28.3%~26 of 2584
0.900.3%20.3%~8 of 2584
0.950.0%11.0%~1 of 2584

Why players with little data are not scored

At threshold 0.8 the model falsely flags 7.3% of honest players with little data versus 0.9% for the rest (at 0.5: 14.6% versus 5.0%). Such players make up 3.8% of the holdout.

Source: data/scan_reference.json (ml/build_scan_reference.py).

Independent audit: validation_experiments/FINAL_RESULTS

A separate methodology check: leakage, model comparison, ablation, calibration, bootstrap. The audit tested the model without Part 2 stacking, so ROC-AUC here is lower than for the production model. This is expected and not a contradiction (experiment_info.txt).

Model comparison

ModelROC-AUCPR-AUCBrierPrecisionRecall
Logistic regression0.8080.6120.1710.5010.622
Random Forest0.8470.6820.1250.6740.527
XGBoost (selected)0.8580.7060.1370.5940.650
CatBoost0.8540.6990.1380.6190.585

Calibration

ECE before calibration
0.164
ECE after
0.012
Brier before
0.137
Brier after
0.105

ECE shows how well a “70%” from the model really means 70%. Calibration cut the error more than tenfold, so percentages on these screens can be read as probabilities.

What happens if a feature group is removed

ConfigurationFeaturesROC-AUCChange
all features260.858
without rating220.839-0.020
rating only40.716-0.143
without timings230.851-0.007
without verdicts200.820-0.038
without language230.855-0.004
without activity200.846-0.012
without difficulty/time230.856-0.002

Thresholds in the audit

ThresholdPrecisionRecallF1Flagged
0.300.3570.8950.5111687 (51.8%)
0.400.4400.7970.5671220 (37.4%)
0.500.5450.7150.619884 (27.1%)
0.600.6290.5850.606626 (19.2%)
0.700.7420.4960.594450 (13.8%)
0.800.8540.3920.537309 (9.5%)
Bootstrap: 95% confidence intervalsROC-AUC = 0.857502 95% CI = [0.840042, 0.872591] AP = 0.705927 95% CI = [0.675581, 0.734921] Brier = 0.104838 95% CI = [0.097761, 0.111455]

SHAP

shap_global.png
shap_global.png
shap_false_positive.png
shap_false_positive.png
shap_listed_example.png
shap_listed_example.png

Limitations

  • Codeforces API does not return other people's source code: the model sees only metadata (verdict, time, language).
  • Among random players there are far fewer cheaters than the 20.7% in the training set, so the false share among scanner flags is higher than on holdout.
  • The cheater list is static while the honest sample grows with new data: revisit the threshold when the data changes noticeably.
  • Detailed discussion of limitations: project paper, section 10.