1 Star 0 Fork 0

Dashvvood/pit_car

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
selection_lw.py 1015 Bytes
一键复制 编辑 原始数据 按行查看 历史
Dashvvood 提交于 2021-06-25 12:05 . :ambulance:
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)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/Dashvvood/pit_car.git
git@gitee.com:Dashvvood/pit_car.git
Dashvvood
pit_car
pit_car
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385