Eddie's Learning Record 32

1. Duration

Tuesday, January 31st, 2023 - Saturday, February 4th, 2023


2. Learning Record

2.1 Refactor for Macro Expression Spotting

Save the resampled features of every subject separately to lift the restrictions of the tf.data buffer size.

Save different versions of .ipynb files and rename them into generator, backup, and dev.

2.2 Refactor for LOSO

Refactor the code by using sklearn.model_selection.LeaveOneGroupOut to two for loops.

Theoretically, it should give almost the same outputs. But the outputs from the for loops are slightly worse than those from the LeaveOneGroupOut. And the training time is about two times of the file using LeaveOneGroupOut. Damn!

2.3 Refactor the Spotting and Evaluation

Put the prediction parameter preds out of the training.py file and do the spotting and evaluation when all training loops are finished. By doing this, I can debug the spotting and evaluation without repeating the training step.


3. Feelings

3.1 Perplexed

The training for macro expression spotting costs more than a day. I don't know what to do.

Eddie's Learning Records logo
Subscribe to Eddie's Learning Records and never miss a post.