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

Function test_auc_equal_predictions

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

Source from the content-addressed store, hash-verified

236
237 #[test]
238 fn test_auc_equal_predictions() -> Result<()> {
239 let one = FixedPrecisionConfig::default().denominator() as i64;
240 let y_true = vec![0, one, 0, one];
241 let y_pred = vec![42, 42, 42, 42];
242 let res = test_helper(y_true, y_pred)?;
243 assert!((res - 0.5).abs() < 1e-3);
244 Ok(())
245 }
246
247 #[test]
248 fn test_auc_large_array() -> Result<()> {

Callers

nothing calls this directly

Calls 2

denominatorMethod · 0.80
test_helperFunction · 0.70

Tested by

no test coverage detected