Fix #245: return error for NaN in naive bayes (#246)

* 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
This commit is contained in:
Lorenzo
2025-01-27 23:17:55 +00:00
committed by GitHub
parent 3da433f757
commit c8ec8fec00
2 changed files with 474 additions and 38 deletions
-1
View File
@@ -7,7 +7,6 @@
clippy::approx_constant
)]
#![warn(missing_docs)]
#![warn(rustdoc::missing_doc_code_examples)]
//! # smartcore
//!