cvsa/ml/pred/count.py
alikia2x 636c5e25cb
ref: move ML stuff
add: .idea to VCS, the refactor guide
2025-03-29 14:13:15 +08:00

12 lines
283 B
Python

# iterate all json files in ./data/pred
import os
import json
count = 0
for filename in os.listdir('./data/pred'):
if filename.endswith('.json'):
with open('./data/pred/' + filename, 'r') as f:
data = json.load(f)
count += len(data)
print(count)