-
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.
Remove Rayon, add error handling for PLS regression, and enhance docu…
…mentation - **Removed Rayon dependency**: Eliminated the use of Rayon for parallel iterations in the algorithm code to simplify dependencies and execution flow. - **Added error handling for PLS regression**: Wrapped the `PlsRegression::fit` method with `panic::catch_unwind` to catch panics during model fitting and convert them into `KryptoError::PlsError`. - **Enhanced documentation**: Added Rust doc comments (`///` and `/** ... */`) to public functions and structs for better code readability and generated documentation. - **Refactored `IntervalData`**: Moved the computation of normalized predictors into the `IntervalData` struct to improve efficiency by precomputing these values. - **Adjusted test parameters**: Updated test configurations in `tests/algorithm.rs` for more comprehensive testing. - **Extended error handling**: Introduced a new error variant `KryptoError::PlsError` to handle PLS regression-specific errors.
- Loading branch information
1 parent
ce2ea64
commit 63db524
Showing
15 changed files
with
278 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.