Is there a way to execute line by line? I don’t think so.
I organised my code code into 4 or 5 cells - this is what the structure of my final dogs vs cats looks like
collection of helper functions - this is where most of the logic is kept
# orchestrate training
execute training epochs
save weights to disk
# orchestrate predictions
load weights from disk
save predictions to disk
# orchestrate csv writing
load predictions from disk
write kaggle submission csv
As I refined each ‘orchestration’ section of code, I factored it into functions and put it into the 2nd ‘helper function’ block.
Logic that I’m still refining is kept at the
orchestration level so I only need to repeatedly execute a single cell as I work on and test it.