Spaces:
Sleeping
Sleeping
Update main.py
Browse files469 unmodified lines470471472473474475476477478469 unmodified lines# ~100 avg loss -> ~60%accuracy = max(10.0, min(100.0, 100.0 * math.exp(-0.005 * avg_cpl)))# Estimate Elo based slightly on accuracy# This is a fun heuristic metricestimated_elo = int(max(400, min(3600, 3600 - (avg_cpl * 20))))return AnalyzeResponse(accuracy=round(accuracy, 1),469 unmodified lines470471472473474475476477469 unmodified lines# ~100 avg loss -> ~60%accuracy = max(10.0, min(100.0, 100.0 * math.exp(-0.005 * avg_cpl)))# Exponential Elo Decay calibrated to 3600 max engine strengthestimated_elo = int(max(400, min(3600, round(3600 * math.exp(-0.015 * avg_cpl)))))return AnalyzeResponse(accuracy=round(accuracy, 1),
main.py+2-3