trueno 0.16.4

High-performance SIMD compute library with GPU support for matrix operations
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Training data quality tests (F041-F060).

use super::super::*;

#[test]
fn f059_no_data_leakage() {
    // Training labels should not be in feature vector
    let features = TunerFeatures::builder()
        .measured_tps(500.0) // Label
        .build();

    let v = features.to_vector();
    // measured_tps should NOT be in the vector (it's a label)
    assert_eq!(v.len(), TunerFeatures::DIM);
}