Exp/74 exp cross dataset validation #107
Reference in New Issue
Block a user
Delete Branch "exp/74-exp-cross-dataset-validation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request makes several improvements and refactorings to the
code/notebooks/stft.ipynbnotebook, focusing on code clarity, reproducibility, and enhanced data visualization and evaluation for STFT and machine learning workflows. The main changes include standardizing sensor naming, improving type annotations, refactoring plotting and evaluation code, and adding new sections for AU data testing.Key changes:
Data structure and naming consistency
sensor1/sensor2tosensorA/sensorBinoutput_dirsfor clarity and consistency.ready_data1aandready_data2ato explicitly specify lists ofpd.DataFramefor better code readability and type safety. [1] [2]y,y1,y2) to avoid overwriting and clarify which dataset each label corresponds to.Refactoring and code quality
pool.mapcall and likely moving fixed arguments inside the worker function.X1bandX2bfor clarity and maintainability.Visualization and plotting improvements
preview_stftfunction for visualizing STFT data with configurable axis ticks and improved labeling, replacing inline plotting code.Machine learning evaluation enhancements
New functionality
These changes collectively improve the notebook's usability, maintainability, and reproducibility for STFT analysis and machine learning evaluation.