1 Star 0 Fork 0

Dashvvood/pit_car

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
selection.py 676 Bytes
一键复制 编辑 原始数据 按行查看 历史
Dashvvood 提交于 2021-06-25 12:05 . :ambulance:
import pandas as pd
import numpy as np
notes = np.zeros(4)
path = 'Q:/cross_data/2021-06-25-04-34-43/2021-06-25-04-34-43-PARAMETERS.csv'
path3= path[:-14] +'RECORDS3.csv'
outputs = pd.read_csv(path3)
who_is_the_best = np.zeros(1024)
for i in range(1024):
if i % 4==0 or i % 4==1:
note = np.zeros(4)
for k in range(4):
note[k] = np.abs(outputs.Ymin[i+k*1024] - outputs.Ymax[i+k*1024]) + 0*outputs.time[i+k*1024]
notes[np.argmin(note)] += 1
who_is_the_best[i] = np.argmax(note)
print(who_is_the_best)
print(notes)
A = []
for i in range(len(who_is_the_best)):
if who_is_the_best[i] == 0:
A.append(i)
print(A)
马建仓 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