zuishi_has={}
f = open('record_mse.txt','r')
for lines in f:
# query_list.append(line.replace('/','').replace('、','').replace(' ','').strip('\n'))
#ls = lines.strip(':')
ls1=lines.find('step:')
#print(ls1)
#print(lines[ls1+6:])
ls2=lines.find('id:')
#print(ls2)
ls3=lines.find(':total')
#print(ls3)
#print(lines[ls2+4:ls3-1])
zuishi_has[str(int(lines[ls2+4:ls3-1]))]=int(lines[ls1+6:])
#print('')
#print(len(ls))
#break
no: 935 id: 1446 :total train number: 1188 time: 21.175620079040527 mse: 0.01259867590874267 step: 10
|