Skip to content

Commit 4364604

Browse files
committed
docstring
1 parent 53ef884 commit 4364604

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Tools/inspection/oracle_external_inspection.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
"""Compare external inspection modes against a reference mode ("Oracle").
2+
3+
This script reports the following validation metrics:
4+
5+
- impossible: Number of stacks matching a known impossible pattern. The
6+
classifiers are not exhaustive.
7+
8+
- raw_tvd: Total variation distance between this mode's stack distribution
9+
and the reference's distribution. Stacks classified as impossible are
10+
excluded.
11+
12+
- tvd_excess: raw_tvd minus tvd_floor.
13+
14+
- tvd_floor: IID heuristic for the TVD expected from finite sampling of both
15+
distributions. This is not a lower bound.
16+
"""
17+
118
import argparse
219
import contextlib
320
import math

0 commit comments

Comments
 (0)