()
| 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<()> { |
nothing calls this directly
no test coverage detected