Skip to content

Commit c8ec8fe

Browse files
authored
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
1 parent 3da433f commit c8ec8fe

File tree

2 files changed

+474
-38
lines changed

2 files changed

+474
-38
lines changed

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
clippy::approx_constant
88
)]
99
#![warn(missing_docs)]
10-
#![warn(rustdoc::missing_doc_code_examples)]
1110

1211
//! # smartcore
1312
//!

0 commit comments

Comments
 (0)