-
Notifications
You must be signed in to change notification settings - Fork 0
/
count.py
16 lines (14 loc) · 1.59 KB
/
count.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import numpy
import torch
scores = [10.585350802209296,9.745600487402813,11.909242174340536,12.112682011812499,13.275483787568147,7.818368721076945,14.761174568447167,8.340317991832311,15.632241326229693,8.340336950075347,12.299747919201952,3.912840992119973,12.403451280458738,9.361040364356786,14.111889759156076,10.700760647873624,8.139206327244887,17.03791225226375,12.233505949049393,9.118483912249777,8.178601152209918,10.362031059376614,12.441614722590637,14.428161191901266,6.173032317487457,9.401425122682346,16.654374620473167,8.42791539194031,7.506203230853555,7.302842892805333,9.021986041783512,5.020175845583583,10.343545816027813,5.870067655199456,13.90138765192875]
latencys = [243.2079315185547,240.9040927886963,241.28103256225586,241.42098426818848,242.05589294433594,243.40510368347168,242.35105514526367,243.54100227355957,242.5549030303955,240.85497856140137,241.76788330078125,243.30997467041016,241.14608764648438,240.56696891784668,242.32888221740723,242.16413497924805,241.2889003753662,240.5109405517578,241.8069839477539,240.52786827087402,240.37694931030273,240.95582962036133,242.8262233734131,243.47805976867676,241.47582054138184,240.678071975708,240.71097373962402,239.42184448242188,240.39912223815918,239.69507217407227,242.2471046447754,241.6250705718994,240.25988578796387,241.5449619293213,239.33696746826172]
scores = numpy.array(scores)
latencys = numpy.array(latencys)
count = 0
for i in scores:
if i >= 8:
count += 1
print("",len(scores))
print("分数超出6.5分的个数:",count)
print("\n分数平均值:",scores.mean())
print("\n时间平均值:",latencys.mean())