I have created a Pandas dataframe:
scores = pd.DataFrame(
{"batch_size" : list(range(64)),
"learning_rate" : list(range(64)),
"dropout_rate" : list(range(64)),
"accuracies" : [[0]]*64,
"loss" : [[0]]*64,
"training_time" : list(range(64)),
}, index = list(range(64)))
Then, in a loop I run 64 models and add the results in the list.
The loop is still ongoing and I dont expect it to be finished before my deadline. Therefore, I would like to terminate the console and continue with the information that has been stored in scores
so far. However, I only want to do this if I can still access the dataframe after I terminate the loop.
Can I use the dataframe with intermediate results if I terminate the loop while it's still running?