# Eddie's Learning Record 32 **Published by:** [Eddie's Learning Records](https://paragraph.com/@eddiehe/) **Published on:** 2023-02-13 **URL:** https://paragraph.com/@eddiehe/eddies-learning-record-32 ## Content 1. DurationTuesday, January 31st, 2023 - Saturday, February 4th, 2023 2. Learning Record2.1 Refactor for Macro Expression SpottingSave 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 LOSORefactor 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 EvaluationPut 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. Feelings3.1 PerplexedThe training for macro expression spotting costs more than a day. I don't know what to do. ## Publication Information - [Eddie's Learning Records](https://paragraph.com/@eddiehe/): Publication homepage - [All Posts](https://paragraph.com/@eddiehe/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@eddiehe): Subscribe to updates - [Twitter](https://twitter.com/eddiehe99): Follow on Twitter ## Optional - [Collect as NFT](https://paragraph.com/@eddiehe/eddies-learning-record-32): Support the author by collecting this post - [View Collectors](https://paragraph.com/@eddiehe/eddies-learning-record-32/collectors): See who has collected this post