<> Problem description

demand : Read about 200 Multiline txt file , obtain 17-216 The value in the specified position in each row of a row .

<> realization
#-*- coding: utf-8 -*- """ @Date: 2020/5/21 21:53 @Author: Pangpd @FileName:
read_log.py @IDE: PyCharm @Description: Get the training accuracy and loss in the log """ import linecache
# Gets the content of the specified line def get_line(file, nums_line): return linecache.getline(file, nums_line
).strip() file =
'D:/UseTools/OneDrive/codes/My-Research/logs/05-01_10-09-40/05-01_10-09-40.txt'
train_accuracy_list= [] train_loss_list = [] for line in range(17, 217):
current_context= get_line(file, line).split() train_accuracy = float(
current_context[9]) train_loss = float(current_context[6]) train_accuracy_list.
append(train_accuracy) train_loss_list.append(train_loss)

Technology
©2019-2020 Toolsou All rights reserved,
Python Basic knowledge and notes 2021 year 1 Monthly programmer salary statistics , average 14915 element GDOI2019 travels C++ Standard library What should I do if I suddenly encounter a question I can't answer during the interview ?2021 year 2 Monthly programmer salary statistics , average 15144 element college examination for the self-taught An overview of Marxism use C++ I want to talk to you “ Prototype mode ” ( copy / copy constructor ) How to use it quickly html and css Write static page Bitcoin in ten years ,VDS Opportunity or fraud