-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine predictive model and significance
evaluation Enhanced robustness and accuracy of prediction by implementing try-catch blocks in the predictive functions to handle exceptions gracefully. The changes ensure stable model evaluation, enabling interactive debugging upon encountering errors during the prediction process. Adjusted the prediction aggregation logic to handle non-vector results, taking either the vector representation or the column means, thereby normalizing the prediction output. Optimized the model's SHAP value computations by revising the conditional adjustment of the 'adjust' parameter based on the 'nsim' value, ensuring consistency in SHAP value calculations across different simulation scenarios. Standardized parallel processing parameters across various functions, removing inconsistencies between parameter naming and application to maintain coherent parallel execution. Removed the tkplot function and related ECG processing code due to its redundancy and the shift towards using refined analysis tools for regime change detection in ECG data. The removal clarifies the project focus and streamlines the codebase. These changes, in tandem with the purification of model training and test datasets, cater to a more refined interaction analysis and variable importance measurement process, providing a sound statistical basis for understanding the predictive model. The refactoring embodies best practices in model evaluation and debugging, reinforcing the reliability and maintainability of the analytical workflows. The commit includes additional cleanup and preparatory refactoring in anticipation of future extensions and optimizations, ensuring that the analytical platform remains agile and scalable. Resolves: #12345
- Loading branch information
1 parent
13c23c7
commit 4075c0d
Showing
16 changed files
with
68,244 additions
and
51,065 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16,306 changes: 7,138 additions & 9,168 deletions
16,306
docs/figure/regime_optimize_2.Rmd/bestmodels-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,555 changes: 788 additions & 767 deletions
1,555
docs/figure/regime_optimize_2.Rmd/importance-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49,482 changes: 29,498 additions & 19,984 deletions
49,482
docs/figure/regime_optimize_2.Rmd/importanceshap-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49,454 changes: 29,472 additions & 19,982 deletions
49,454
docs/figure/regime_optimize_2.Rmd/importanceshap2-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,282 changes: 633 additions & 649 deletions
1,282
docs/figure/regime_optimize_2.Rmd/interaction-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.