Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Rust
/ predict_naive_bayes
Function
predict_naive_bayes
src/machine_learning/naive_bayes.rs:124–157 ·
view source on GitHub ↗
(model: &[ClassStatistics], test_point: &[f64])
Source
from the content-addressed store, hash-verified
source not stored for this graph (policy: none)
Callers
2
naive_bayes
Function · 0.85
test_train_and_predict_separately
Function · 0.85
Calls
4
gaussian_log_pdf
Function · 0.85
is_empty
Method · 0.45
len
Method · 0.45
iter
Method · 0.45
Tested by
1
test_train_and_predict_separately
Function · 0.68