I0625 17:25:22.544378 3366 solver.cpp:229] Iteration 7120, loss = 8.79839
expected output :
Iteration 7120 loss = 8.79839
I0625 17:25:22.544378 3366 solver.cpp:229] Iteration 7120, loss = 8.79839
expected output :
Iteration 7120 loss = 8.79839
You would probably need to use a regular expression to find lines that contain the values you want and to extract them. These lines can then be written in CSV format using Python's CSV library as follows:
Giving you
output.csv
in CSV format as follows: