MCPcopy 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_treeFunction · 0.85
test_get_majority_classFunction · 0.85

Calls 3

pushMethod · 0.80
is_emptyMethod · 0.45
iterMethod · 0.45

Tested by 1

test_get_majority_classFunction · 0.68