Comparison Operators
Use these operators to compare metrics against thresholds or baselines:| Operator | Description | Example |
|---|---|---|
== | Equal to | accuracy == 0.95 |
!= | Not equal to | error_rate != 0 |
< | Less than | latency < 200 |
<= | Less than or equal to | latency <= 200 |
> | Greater than | accuracy > 0.90 |
>= | Greater than or equal to | accuracy >= 0.90 |
Baseline Types
Choose how to compare your metrics:Fixed Baseline
Compare against a fixed threshold value.- You have absolute quality requirements
- You want consistent thresholds across all runs
- You’re setting initial quality gates
Previous Baseline
Compare against the previous run to detect regressions.- You want to prevent regressions
- You’re tracking improvements over time
- You want relative comparisons
Main Branch Baseline
Compare against the main branch baseline.- You want to compare PRs against production
- You’re enforcing that changes don’t degrade quality
- You want branch-based comparisons