0.108.5: Stage D scoring in Kotlin (parity with Python), Emby collections read, Settings > Director's Chair read only; built, not installed
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
committed by
Claude
co-authored by
Claude Opus 5.5
parent
00153e25bd
commit
a17834aa66
File diff suppressed because one or more lines are too long
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Compare the Kotlin scoring (DirectorParityTest's kotlin-placements.json) with the Python reference on the same saved inputs."""
|
||||
import json,sys
|
||||
ref={o['id']:o for o in json.load(open(sys.argv[1]))}; kt={o['id']:o for o in json.load(open(sys.argv[2]))}
|
||||
diff=[i for i in ref if ref[i]['top']!=kt[i]['top'] or ref[i]['second']!=kt[i]['second'] or abs(ref[i]['s1']-round(kt[i]['s1'],2))>0.011 or abs(ref[i]['s2']-round(kt[i]['s2'],2))>0.011]
|
||||
print('titles',len(ref),'differences',len(diff))
|
||||
for i in diff: print(ref[i],kt[i])
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user