MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / test_auc_large_array

Function test_auc_large_array

ciphercore-base/src/ops/auc.rs:248–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246
247 #[test]
248 fn test_auc_large_array() -> Result<()> {
249 let one = FixedPrecisionConfig::default().denominator() as i64;
250 let mut y_true = vec![];
251 let mut y_pred = vec![];
252 for i in 0..10000 {
253 y_true.push(if i < 5000 { 0 } else { one });
254 y_pred.push(i);
255 }
256 let res = test_helper(y_true, y_pred)?;
257 assert!((res - 1.0).abs() < 1e-3);
258 Ok(())
259 }
260}

Callers

nothing calls this directly

Calls 3

denominatorMethod · 0.80
test_helperFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected