INNER CODE UNIT · Rust

hi

google/best · src/intervals.rs:90

            hi = end - (i - start);
            lo = hi.saturating_sub(win_len).max(start);
        } else {
            lo = i;
            hi = (i + win_len).min(end);
        };

        if pos {
            res.push(FeatureInterval {
                start: lo,
                stop: hi,
                val: format!("window_{}_pos_{}", win_len, i - start),
            });
        } else {
            res.push(FeatureInterval {
                start: lo,
                stop: hi,
                val: format!("window_{}", win_len),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…