concept
AI product feasibility and baseline
Summarize verified task outcomes with explicit denominators and severe error counts; not a real evaluation.
Formal Syntax & Structure
artificial-intelligence syntaxartificial-intelligence
summarize(rows)Working Example
Example Snippetartificial-intelligence
def summarize(rows): # Each row is (completed, handling_minutes, severe_error). if any(type(ok) is not bool or type(severe) is not bool or type(minutes) is not int or minutes < 0 or (ok and severe) for ok, minutes, severe in rows): raise ValueError("invalid outcome") return dict(tasks=len(rows), completed=sum(r[0] for r in rows), minutes=sum(r[1] for r in rows), severe=sum(r[2] for r in rows))
baseline = [(True, 8, False)] * 9 + [(False, 12, False)]assisted = [(True, 5, False)] * 9 + [(False, 15, True)]print(summarize(baseline))print(summarize(assisted))