Skip to content

Commit

Permalink
Refine predictive model and significance
Browse files Browse the repository at this point in the history
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
franzbischoff committed Jan 2, 2024
1 parent 13c23c7 commit 4075c0d
Show file tree
Hide file tree
Showing 16 changed files with 68,244 additions and 51,065 deletions.
656 changes: 354 additions & 302 deletions analysis/regime_optimize_2.Rmd

Large diffs are not rendered by default.

Binary file modified docs/figure/regime_optimize_2.Rmd/best-1.png
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 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.
303 changes: 161 additions & 142 deletions docs/figure/regime_optimize_2.Rmd/global-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/figure/regime_optimize_2.Rmd/globalmodel-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,555 changes: 788 additions & 767 deletions 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 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 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 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.
Binary file modified docs/figure/regime_optimize_2.Rmd/worst-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
269 changes: 199 additions & 70 deletions docs/regime_optimize_2.html

Large diffs are not rendered by default.

Binary file modified output/dbarts_fitted2_lmk.rds
Binary file not shown.
Binary file modified output/dbarts_fitted_lmk.rds
Binary file not shown.
Binary file modified output/importances2_lmk.rds
Binary file not shown.
Binary file modified output/importances_lmk.rds
Binary file not shown.
Binary file modified output/regime_outputs_lmk.rds
Binary file not shown.

0 comments on commit 4075c0d

Please sign in to comment.