[FEAT] Feat Include Undamaged Node Classification #98
Reference in New Issue
Block a user
Delete Branch "feat/53-feat-include-undamaged-node-classification"
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 introduces several changes across multiple files to enhance functionality, improve accuracy, and streamline data processing for machine learning tasks. The most significant updates include adjustments to file paths, improvements to data visualization, and enhancements to include undamaged case data.
Configuration Updates:
.vscode/settings.json: Updatedpython.analysis.extraPathsto include${workspaceFolder}/code/srcfor better module resolution.Data Processing Enhancements:
code/src/process_stft.py: Changeddamage_base_pathto point to a new dataset directory (raw_B) and added a header row (sep=,) to the CSV export inprocess_damage_case. Also updated the range for multiprocessing to include damage case0. [1] [2]code/src/ml/model_selection.py: Modifiedcreate_ready_datato skip the first row of CSV files and added a newtrain_and_evaluate_modelfunction to train models, evaluate accuracy, and optionally export them. [1] [2]Visualization Improvements:
code/notebooks/stft.ipynb: Enhanced data visualization by:Machine Learning Updates:
code/notebooks/stft.ipynb: Improved model training and evaluation by:StandardScaler,PCA) and training SVM models. [1] [2]Miscellaneous Fixes:
code/notebooks/stft.ipynb: Corrected labels and confusion matrix calculations for SVM predictions to ensure consistency with the test dataset. [1] [2]