Evaluation, diagnostics, benchmarks, and additional tests · Evaluation, diagnostics, benchmarks, and additional hypothesis tests · EVA040 · Metric
Scale-invariant signal-to-distortion ratio
Measures waveform reconstruction quality after projecting the estimate onto a reference signal.
In CodeSplash
A CodeSplash method runs this entry in Python and R. Set it up from the method's page.
- Source separation metrics (SI-SDR, SDR, SIR, SAR) Verified in Python and R
Do it in CodeSplash Run it on your own data, in Python or R.
- Availability
- Runs in CodeSplash
- Code example
- Complete calculation
- Who ran it
- CodeSplash's run and the reference's record
- CodeSplash's run
- Verified in Python and R through evaluate.separation. The reference's example ran in Python and R here, and they agree.
- The reference's record
- Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.
Purpose
Measures waveform reconstruction quality after projecting the estimate onto a reference signal.
Question / hypotheses
How large is the reference-aligned component relative to the remaining error, allowing a global gain difference?
Architecture / computational structure
A fixed scoring/calibration pipeline applied to model outputs or supplied observations; the formula and usage sections identify its operations.
Assumptions
Reference and estimate must be time-aligned with compatible sample rates. Declare zero-mean preprocessing, channel treatment, silence handling, and source-permutation matching.
Formula / computational definition
Parameters and notation
s is reference, s-hat estimate. Epsilon stabilization, centering, and aggregation are implementation choices. No learned parameters belong to the metric.
Fitting, fine-tuning, and adaptation
There is no model fine-tuning step for this evaluation procedure. Freeze the evaluated systems and evaluator before the final test. Select evaluation settings on development data; if a learned evaluator or calibration model is adapted, use separate fitting data, version it, and reassess its validity.
How to use and calibrate
Evaluate each source after valid matching, report improvement over the input mixture, and include perceptual/intelligibility evaluation for the same utterances.
Example application
Compare source-separation systems trained on identical mixtures.
Interpretation / pitfalls
Watch out
Scale invariance can conceal gain errors. Time shifts may dominate the score, and high signal fidelity does not guarantee good perceived quality or intelligibility.
Python and R code examples
Scope: Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.
Validation: Python — Executed successfully on synthetic inputs. R — reviewed but not executed in this environment. Python dependencies are explicit imports; R uses base R unless a package/bridge is explicitly named.
Python and R
The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.
Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline. · needs numpy
import numpy as np
s=np.array([1.,-1.,2.,-2.]); est=np.array([1.1,-.8,1.9,-2.1]); a=est@s/(s@s)
print(10*np.log10(np.sum((a*s)**2)/np.sum((est-a*s)**2)))
Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.
s <- c(1,-1,2,-2); est <- c(1.1,-.8,1.9,-2.1); a <- sum(est*s)/sum(s*s)
print(10*log10(sum((a*s)^2)/sum((est-a*s)^2)))
Sources
- Source 1arxiv.org
From the CodeSplash reference, entry EVA040.