Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Rust
/ get_majority_class
Function
get_majority_class
src/machine_learning/decision_tree.rs:144–177 ·
view source on GitHub ↗
Get the majority class label
(labels: &[f64])
Source
from the content-addressed store, hash-verified
source not stored for this graph (policy: none)
Callers
2
build_tree
Function · 0.85
test_get_majority_class
Function · 0.85
Calls
3
push
Method · 0.80
is_empty
Method · 0.45
iter
Method · 0.45
Tested by
1
test_get_majority_class
Function · 0.68