代码拉取完成,页面将自动刷新
import pandas as pd
import numpy as np
notes = np.zeros((4,4))
path = 'Q:/cross_data/2021-06-25-04-34-43/2021-06-25-04-34-43-PARAMETERS.csv'
path3= path[:-14] +'RECORDS3.csv'
parameters = pd.read_csv(path)
outputs = pd.read_csv(path3)
who_is_the_best = np.zeros(1024)
N = len(parameters)
l36w16 = 0
l36w18 = 0
l36w20 = 0
l36w22 = 0
l40w16 = 0
l40w18 = 0
l40w20 = 0
l40w22 = 0
l44w16 = 0
l44w18 = 0
l44w20 = 0
l44w22 = 0
l48w16 = 0
l48w18 = 0
l48w20 = 0
l48w22 = 0
notes = np.zeros(16)
for i in range(4):
note = np.zeros(16)
for m in range(16):
ind = i*1024+m*64
if ind % 4 == 2 or ind % 4 == 3:
continue
else:
print(ind)
note[m] = np.abs(outputs.Ymin[ind] - outputs.Ymax[ind]) + 0.01*outputs.time[ind]
K = np.argsort(note)
print(K)
for j in range(16):
notes[K[j]] += 15-j
# if j == 15 :
# notes[K[j]] += 20
# notes[K[j]] += j
print(notes)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。