A: method check if req.method not in {"GET","POST"}: return # Region B: path check if not req.path.startswith("/api/"): return # Region C: authentication token if not valid_token(req.headers["Auth"]): return # Region D: admin endpoint if req.path == "/api/admin" and req.headers["Role"]=="root": crash() # Region U: unreachable if req.method=="GET" and req.method=="POST": unreachable()
not in {"GET","POST"}: return # Region B: path check if not req.path.startswith("/api/"): return # Region C: authentication token if not valid_token(req.headers["Auth"]): return # Region D: admin endpoint if req.path == "/api/admin" and req.headers["Role"]=="root": crash() # Region U: unreachable if req.method=="GET" and req.method=="POST": unreachable() Stop too early & Stop too Late Why Stopping Matters?
# Region A: method check if req.method not in {"GET","POST"}: return # Region B: path check if not req.path.startswith("/api/"): return # Region C: authentication token if not valid_token(req.headers["Auth"]): return # Region D: admin endpoint if req.path == "/api/admin" and req.headers["Role"]=="root": crash() # Region U: unreachable if req.method=="GET" and req.method=="POST": unreachable() METHOD: GET PATH: /x Auth: invalid_token Role: user Inputs Program
# Region A: method check if req.method not in {"GET","POST"}: return # Region B: path check if not req.path.startswith("/api/"): return # Region C: authentication token if not valid_token(req.headers["Auth"]): return # Region D: admin endpoint if req.path == "/api/admin" and req.headers["Role"]=="root": crash() # Region U: unreachable if req.method=="GET" and req.method=="POST": unreachable() METHOD: GET PATH: /api/x Auth: invalid_token Role: user Inputs Program
# Region A: method check if req.method not in {"GET","POST"}: return # Region B: path check if not req.path.startswith("/api/"): return # Region C: authentication token if not valid_token(req.headers["Auth"]): return # Region D: admin endpoint if req.path == "/api/admin" and req.headers["Role"]=="root": crash() # Region U: unreachable if req.method=="GET" and req.method=="POST": unreachable() METHOD: GET PATH: /api/admin Auth: TOKEN_OK Role: user Inputs Program
vs Blackbox estimates Estimate vs Ground Truth Main goal Do they agree at the equilibrium point? Is the estimate correct? Metrices 1. Bias 1. Bias 2. Variance 3. Con fi dence interval coverage Evaluation Metrics