Skip to content

Commit

Permalink
Fix #245: return error for NaN in naive bayes (#246)
Browse files Browse the repository at this point in the history
* Fix #245: return error for NaN in naive bayes
* Implement error handling for NaN values in NBayes predict:
* general behaviour has been kept unchanged according to original tests in `mod.rs`
* aka: error is returned only if all the predicted probabilities are NaN
* Add tests
* Add test with static values
* Add test for numerical stability with numpy
  • Loading branch information
Mec-iS authored Jan 27, 2025
1 parent 3da433f commit c8ec8fe
Show file tree
Hide file tree
Showing 2 changed files with 474 additions and 38 deletions.
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
clippy::approx_constant
)]
#![warn(missing_docs)]
#![warn(rustdoc::missing_doc_code_examples)]

//! # smartcore
//!
Expand Down
Loading

0 comments on commit c8ec8fe

Please sign in to comment.