Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Rust
/ train_naive_bayes
Function
train_naive_bayes
src/machine_learning/naive_bayes.rs:77–122 ·
view source on GitHub ↗
(training_data: Vec<(Vec<f64>, 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
5
calculate_class_statistics
Function · 0.85
push
Method · 0.80
is_empty
Method · 0.45
len
Method · 0.45
iter
Method · 0.45
Tested by
1
test_train_and_predict_separately
Function · 0.68