reach.sweep¶
Execute multi-scale catalog evaluation sweeps to measure reachability decay and capacity knees.
Execute catalog scaling sweeps and detect capacity knees.
ScalingPoint ¶
Bases: BaseModel
Represent evaluation outcomes and decomposition for a single catalog scale point.
Source code in src/reach/sweep.py
ScalingStudy ¶
Bases: BaseModel
Represent multi-scale catalog scaling study and knee curvature analysis.
Source code in src/reach/sweep.py
bootstrap_f1_ci ¶
bootstrap_f1_ci(
results: Sequence[ProbeResult],
truth: Mapping[str, str | None],
installed_skills: set[str],
iterations: int = 1000,
seed: int = 42,
target_skill: str | None = None,
) -> tuple[float, float]
Compute empirical bootstrap confidence interval for micro F1 score.
Source code in src/reach/sweep.py
compute_scaling_noise_floor ¶
compute_scaling_noise_floor(
baseline_pass_rate: float,
scaled_pass_rate: float,
sample_size: int,
confidence: float = DEFAULT_CONFIDENCE,
noise_inflation: float = NOISE_INFLATION,
) -> float
Calculate minimum scaling pass-rate drop distinguishable from noise using diff.
Source code in src/reach/sweep.py
compute_sla_crossings ¶
compute_sla_crossings(
points: Sequence[ScalingPoint], threshold: float
) -> tuple[int | None, float | None]
Compute discrete conservative scale and log-linear continuous crossing for an SLA target.
Source code in src/reach/sweep.py
find_kneedle_knee ¶
find_kneedle_knee(
scales: Sequence[int],
pass_rates: Sequence[float],
noise_floor: float = 0.1,
) -> int | None
Identify the inflection knee scale k* using normalized log-scale Kneedle curvature.
Source code in src/reach/sweep.py
run_scaling_sweep ¶
run_scaling_sweep(
config: RunConfig | None = None,
target_skill: str | None = None,
scales: Sequence[int] | None = None,
anchor: int | Sequence[str] | str | None = None,
runtime: AgentRuntime | None = None,
rivals_share: float = 0.5,
noise_floor: float | None = None,
workers: int = 1,
skills: Sequence[Skill] | None = None,
query_set: QuerySet | None = None,
attempts: int | None = None,
early_stop: bool | None = None,
) -> ScalingStudy
Execute multi-scale catalog evaluation sweep and return scaling analysis.
Source code in src/reach/sweep.py
823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 | |