ab-analysis-kit 0.5.0__tar.gz → 0.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ab_analysis_kit-0.5.0/ab_analysis_kit.egg-info → ab_analysis_kit-0.6.0}/PKG-INFO +20 -15
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/README.md +19 -14
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0/ab_analysis_kit.egg-info}/PKG-INFO +20 -15
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/ab_analysis_kit.egg-info/SOURCES.txt +5 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/__init__.py +1 -1
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/CLAUDE.section.md +1 -1
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/rules/cli.md +72 -6
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/rules/explore.md +3 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/rules/metrics.md +4 -1
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/rules/overview.md +2 -1
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/skills/abk-new-metric/SKILL.md +4 -1
- ab_analysis_kit-0.6.0/abkit/cli/commands/dashboard.py +158 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/run.py +103 -1
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/main.py +41 -1
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/config/experiment_config.py +12 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/pipeline/driver.py +39 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/pipeline/state.py +61 -1
- ab_analysis_kit-0.6.0/abkit/tuning/__init__.py +106 -0
- ab_analysis_kit-0.6.0/abkit/tuning/assets/dashboard.js +171 -0
- ab_analysis_kit-0.6.0/abkit/tuning/dashboard_server.py +1353 -0
- ab_analysis_kit-0.6.0/abkit/tuning/html.py +181 -0
- ab_analysis_kit-0.6.0/abkit/tuning/jobs.py +590 -0
- ab_analysis_kit-0.6.0/abkit/tuning/overview.py +716 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/pyproject.toml +3 -1
- ab_analysis_kit-0.5.0/abkit/tuning/__init__.py +0 -61
- ab_analysis_kit-0.5.0/abkit/tuning/html.py +0 -93
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/LICENSE +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/MANIFEST.in +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/ab_analysis_kit.egg-info/dependency_links.txt +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/ab_analysis_kit.egg-info/entry_points.txt +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/ab_analysis_kit.egg-info/requires.txt +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/ab_analysis_kit.egg-info/top_level.txt +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/__init__.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/_output.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/rules/experiments.md +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/rules/methods.md +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/rules/plan.md +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/rules/project.md +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/rules/validate.md +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/skills/abk-explore/SKILL.md +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/skills/abk-feedback/SKILL.md +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/skills/abk-new-experiment/SKILL.md +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/skills/abk-plan/SKILL.md +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/skills/abk-setup-project/SKILL.md +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/skills/abk-validate/SKILL.md +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/__init__.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/_context.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/clean.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/explore.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/init.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/init_claude.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/plan.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/test_report.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/unlock.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/validate.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/verify_incremental.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/compute/__init__.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/compute/incremental_backend.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/compute/recompute_backend.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/compute/reconcile.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/config/__init__.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/config/discovery.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/config/method_config.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/config/metric_config.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/config/profile.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/config/project_config.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/config/validator.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/core/__init__.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/core/exposure_counting.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/core/interval.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/core/models.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/core/period_planner.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/database/__init__.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/database/_sql_manager.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/database/clickhouse_manager.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/__init__.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/_aa_runs.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/_base.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/_experiments.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/_exposures.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/_maintenance.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/_results.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/_schema.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/_tasks.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/_unit_state.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/manager.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/database/manager.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/database/mysql_manager.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/database/postgres_manager.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/database/tables.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/loaders/__init__.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/loaders/exposure_copy.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/loaders/exposure_loader.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/loaders/exposure_source.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/loaders/metric_loader.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/loaders/query_template.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/loaders/state_loader.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/loaders/templates/abkit_assignment.jinja +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/notify/__init__.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/notify/base.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/notify/branding.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/notify/email.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/notify/factory.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/notify/mattermost.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/notify/mock.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/notify/slack.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/notify/telegram.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/notify/webhook.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/pipeline/__init__.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/pipeline/_types.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/pipeline/analyze.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/pipeline/enrich.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/pipeline/readout.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/planning/__init__.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/planning/sizing.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/reporting/__init__.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/reporting/assets/report.js +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/reporting/builder.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/reporting/calibration.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/reporting/html_report.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/__init__.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/accumulate.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/base.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/bootstrap/__init__.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/bootstrap/applier.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/bootstrap/bootstrap.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/bootstrap/ci.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/bootstrap/engine.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/bootstrap/paired_bootstrap.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/bootstrap/paired_post_normed_bootstrap.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/bootstrap/poisson_bootstrap.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/bootstrap/post_normed_bootstrap.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/correction.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/effects.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/exceptions.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/factory.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/parametric/__init__.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/parametric/cuped_ttest.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/parametric/paired_cuped_ttest.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/parametric/paired_ttest.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/parametric/ratio_delta.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/parametric/ttest.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/parametric/ztest.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/power.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/registry.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/result.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/rng.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/samples.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/sequential/__init__.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/sequential/apply.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/sequential/confidence_sequence.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/sequential/mixture.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/stats/srm.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/tuning/assets/explore.js +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/tuning/config_writer.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/tuning/payload.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/tuning/recompute.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/tuning/server.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/tuning/session.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/utils/__init__.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/utils/datetime_utils.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/utils/env_interpolation.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/utils/json_utils.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/utils/warn_scope.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/validate/__init__.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/validate/_types.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/validate/family.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/validate/inject.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/validate/load.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/validate/panel.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/validate/persistence.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/validate/resample.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/validate/result.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/validate/run_id.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/validate/runner.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/validate/scoring.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/abkit/validate/vector_resample.py +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/requirements.txt +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/setup.cfg +0 -0
- {ab_analysis_kit-0.5.0 → ab_analysis_kit-0.6.0}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ab-analysis-kit
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: A/B experiment analysis as declarative YAML + SQL
|
|
5
5
|
Author: ab-analysis-kit authors
|
|
6
6
|
License: MIT
|
|
@@ -76,16 +76,16 @@ stabilization chart), writes them to a clean warehouse table any BI can read, an
|
|
|
76
76
|
gives you a local cockpit to tune the analysis and a harness to prove your method is
|
|
77
77
|
actually calibrated.
|
|
78
78
|
|
|
79
|
-
> **Status: `0.
|
|
80
|
-
> (milestones **M1–
|
|
81
|
-
>
|
|
82
|
-
>
|
|
83
|
-
>
|
|
84
|
-
>
|
|
85
|
-
>
|
|
86
|
-
>
|
|
87
|
-
>
|
|
88
|
-
> self-contained reports, `abk validate` (
|
|
79
|
+
> **Status: `0.6.0` (Alpha) — release-ready; `0.5.0` is the latest on PyPI**
|
|
80
|
+
> (milestones **M1–M11** shipped — M11 adds **`abk dashboard`**, the
|
|
81
|
+
> project-level cockpit: one row per experiment with its headline verdict,
|
|
82
|
+
> effect + CI, p/α and a sparkline of the cumulative series, plus buttons that
|
|
83
|
+
> spawn real `abk` subprocesses (Run — for the whole experiment or one metric —
|
|
84
|
+
> Unlock, Clean, Explore, Open report) and stream their logs. It is a
|
|
85
|
+
> **launcher**: it computes no statistic and never takes the pipeline lock, so
|
|
86
|
+
> every verdict on the page is the readout's own). The statistical core, the
|
|
87
|
+
> declarative config / DB / pipeline layer, the explore cockpit +
|
|
88
|
+
> self-contained reports, `abk validate` (numpy-vectorized — minutes → sub-seconds),
|
|
89
89
|
> opt-in sequential analysis + `abk plan`, and the DX layer (`abk init-claude`, docs site,
|
|
90
90
|
> Prefect scaffolding) are all shipped. Docs: [abkit.pipelab.dev](https://abkit.pipelab.dev).
|
|
91
91
|
|
|
@@ -96,10 +96,10 @@ pip install ab-analysis-kit # Python 3.10+; add a DB extra for real dat
|
|
|
96
96
|
pip install "ab-analysis-kit[clickhouse]" # or [postgres] / [mysql] / [all-db]
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
(`0.
|
|
100
|
-
`pip install ab-analysis-kit` gets `0.
|
|
101
|
-
`
|
|
102
|
-
`pip install -e ".[dev]"`.)
|
|
99
|
+
(`0.6.0`'s `abk dashboard` lands with its tag; until then
|
|
100
|
+
`pip install ab-analysis-kit` gets `0.5.0`, which has the M10 window fields
|
|
101
|
+
(`start_ts`/`horizon_ts`) but no dashboard — for the M11 behavior install from
|
|
102
|
+
source: `pip install -e ".[dev]"`.)
|
|
103
103
|
|
|
104
104
|
`abk --version` and `abk --help` work with no database driver; you can even lint a
|
|
105
105
|
config (`abk run --steps validate`) with no database at all. See the
|
|
@@ -115,6 +115,11 @@ config (`abk run --steps validate`) with no database at all. See the
|
|
|
115
115
|
correction. Ported from a battle-tested legacy engine and improved deliberately.
|
|
116
116
|
- **The cumulative stabilization chart** — effect + CI per day from experiment
|
|
117
117
|
start, so you see the estimate converge and call a winner only once it stabilizes.
|
|
118
|
+
- **`abk dashboard`** — the project-level cockpit: every experiment as one row
|
|
119
|
+
(verdict, effect + CI, p/α, sparkline), with Run / Unlock / Clean / Explore /
|
|
120
|
+
Open-report buttons that spawn real `abk` subprocesses and stream their logs.
|
|
121
|
+
It never computes a statistic itself, so what you read is the readout's own
|
|
122
|
+
verdict.
|
|
118
123
|
- **`abk explore`** — a local, chart-first cockpit to turn method knobs (CUPED,
|
|
119
124
|
stratification, alpha…) and watch the result recompute live, with A/A calibration
|
|
120
125
|
always in view. *The priority interface.*
|
|
@@ -11,16 +11,16 @@ stabilization chart), writes them to a clean warehouse table any BI can read, an
|
|
|
11
11
|
gives you a local cockpit to tune the analysis and a harness to prove your method is
|
|
12
12
|
actually calibrated.
|
|
13
13
|
|
|
14
|
-
> **Status: `0.
|
|
15
|
-
> (milestones **M1–
|
|
16
|
-
>
|
|
17
|
-
>
|
|
18
|
-
>
|
|
19
|
-
>
|
|
20
|
-
>
|
|
21
|
-
>
|
|
22
|
-
>
|
|
23
|
-
> self-contained reports, `abk validate` (
|
|
14
|
+
> **Status: `0.6.0` (Alpha) — release-ready; `0.5.0` is the latest on PyPI**
|
|
15
|
+
> (milestones **M1–M11** shipped — M11 adds **`abk dashboard`**, the
|
|
16
|
+
> project-level cockpit: one row per experiment with its headline verdict,
|
|
17
|
+
> effect + CI, p/α and a sparkline of the cumulative series, plus buttons that
|
|
18
|
+
> spawn real `abk` subprocesses (Run — for the whole experiment or one metric —
|
|
19
|
+
> Unlock, Clean, Explore, Open report) and stream their logs. It is a
|
|
20
|
+
> **launcher**: it computes no statistic and never takes the pipeline lock, so
|
|
21
|
+
> every verdict on the page is the readout's own). The statistical core, the
|
|
22
|
+
> declarative config / DB / pipeline layer, the explore cockpit +
|
|
23
|
+
> self-contained reports, `abk validate` (numpy-vectorized — minutes → sub-seconds),
|
|
24
24
|
> opt-in sequential analysis + `abk plan`, and the DX layer (`abk init-claude`, docs site,
|
|
25
25
|
> Prefect scaffolding) are all shipped. Docs: [abkit.pipelab.dev](https://abkit.pipelab.dev).
|
|
26
26
|
|
|
@@ -31,10 +31,10 @@ pip install ab-analysis-kit # Python 3.10+; add a DB extra for real dat
|
|
|
31
31
|
pip install "ab-analysis-kit[clickhouse]" # or [postgres] / [mysql] / [all-db]
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
(`0.
|
|
35
|
-
`pip install ab-analysis-kit` gets `0.
|
|
36
|
-
`
|
|
37
|
-
`pip install -e ".[dev]"`.)
|
|
34
|
+
(`0.6.0`'s `abk dashboard` lands with its tag; until then
|
|
35
|
+
`pip install ab-analysis-kit` gets `0.5.0`, which has the M10 window fields
|
|
36
|
+
(`start_ts`/`horizon_ts`) but no dashboard — for the M11 behavior install from
|
|
37
|
+
source: `pip install -e ".[dev]"`.)
|
|
38
38
|
|
|
39
39
|
`abk --version` and `abk --help` work with no database driver; you can even lint a
|
|
40
40
|
config (`abk run --steps validate`) with no database at all. See the
|
|
@@ -50,6 +50,11 @@ config (`abk run --steps validate`) with no database at all. See the
|
|
|
50
50
|
correction. Ported from a battle-tested legacy engine and improved deliberately.
|
|
51
51
|
- **The cumulative stabilization chart** — effect + CI per day from experiment
|
|
52
52
|
start, so you see the estimate converge and call a winner only once it stabilizes.
|
|
53
|
+
- **`abk dashboard`** — the project-level cockpit: every experiment as one row
|
|
54
|
+
(verdict, effect + CI, p/α, sparkline), with Run / Unlock / Clean / Explore /
|
|
55
|
+
Open-report buttons that spawn real `abk` subprocesses and stream their logs.
|
|
56
|
+
It never computes a statistic itself, so what you read is the readout's own
|
|
57
|
+
verdict.
|
|
53
58
|
- **`abk explore`** — a local, chart-first cockpit to turn method knobs (CUPED,
|
|
54
59
|
stratification, alpha…) and watch the result recompute live, with A/A calibration
|
|
55
60
|
always in view. *The priority interface.*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ab-analysis-kit
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: A/B experiment analysis as declarative YAML + SQL
|
|
5
5
|
Author: ab-analysis-kit authors
|
|
6
6
|
License: MIT
|
|
@@ -76,16 +76,16 @@ stabilization chart), writes them to a clean warehouse table any BI can read, an
|
|
|
76
76
|
gives you a local cockpit to tune the analysis and a harness to prove your method is
|
|
77
77
|
actually calibrated.
|
|
78
78
|
|
|
79
|
-
> **Status: `0.
|
|
80
|
-
> (milestones **M1–
|
|
81
|
-
>
|
|
82
|
-
>
|
|
83
|
-
>
|
|
84
|
-
>
|
|
85
|
-
>
|
|
86
|
-
>
|
|
87
|
-
>
|
|
88
|
-
> self-contained reports, `abk validate` (
|
|
79
|
+
> **Status: `0.6.0` (Alpha) — release-ready; `0.5.0` is the latest on PyPI**
|
|
80
|
+
> (milestones **M1–M11** shipped — M11 adds **`abk dashboard`**, the
|
|
81
|
+
> project-level cockpit: one row per experiment with its headline verdict,
|
|
82
|
+
> effect + CI, p/α and a sparkline of the cumulative series, plus buttons that
|
|
83
|
+
> spawn real `abk` subprocesses (Run — for the whole experiment or one metric —
|
|
84
|
+
> Unlock, Clean, Explore, Open report) and stream their logs. It is a
|
|
85
|
+
> **launcher**: it computes no statistic and never takes the pipeline lock, so
|
|
86
|
+
> every verdict on the page is the readout's own). The statistical core, the
|
|
87
|
+
> declarative config / DB / pipeline layer, the explore cockpit +
|
|
88
|
+
> self-contained reports, `abk validate` (numpy-vectorized — minutes → sub-seconds),
|
|
89
89
|
> opt-in sequential analysis + `abk plan`, and the DX layer (`abk init-claude`, docs site,
|
|
90
90
|
> Prefect scaffolding) are all shipped. Docs: [abkit.pipelab.dev](https://abkit.pipelab.dev).
|
|
91
91
|
|
|
@@ -96,10 +96,10 @@ pip install ab-analysis-kit # Python 3.10+; add a DB extra for real dat
|
|
|
96
96
|
pip install "ab-analysis-kit[clickhouse]" # or [postgres] / [mysql] / [all-db]
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
(`0.
|
|
100
|
-
`pip install ab-analysis-kit` gets `0.
|
|
101
|
-
`
|
|
102
|
-
`pip install -e ".[dev]"`.)
|
|
99
|
+
(`0.6.0`'s `abk dashboard` lands with its tag; until then
|
|
100
|
+
`pip install ab-analysis-kit` gets `0.5.0`, which has the M10 window fields
|
|
101
|
+
(`start_ts`/`horizon_ts`) but no dashboard — for the M11 behavior install from
|
|
102
|
+
source: `pip install -e ".[dev]"`.)
|
|
103
103
|
|
|
104
104
|
`abk --version` and `abk --help` work with no database driver; you can even lint a
|
|
105
105
|
config (`abk run --steps validate`) with no database at all. See the
|
|
@@ -115,6 +115,11 @@ config (`abk run --steps validate`) with no database at all. See the
|
|
|
115
115
|
correction. Ported from a battle-tested legacy engine and improved deliberately.
|
|
116
116
|
- **The cumulative stabilization chart** — effect + CI per day from experiment
|
|
117
117
|
start, so you see the estimate converge and call a winner only once it stabilizes.
|
|
118
|
+
- **`abk dashboard`** — the project-level cockpit: every experiment as one row
|
|
119
|
+
(verdict, effect + CI, p/α, sparkline), with Run / Unlock / Clean / Explore /
|
|
120
|
+
Open-report buttons that spawn real `abk` subprocesses and stream their logs.
|
|
121
|
+
It never computes a statistic itself, so what you read is the readout's own
|
|
122
|
+
verdict.
|
|
118
123
|
- **`abk explore`** — a local, chart-first cockpit to turn method knobs (CUPED,
|
|
119
124
|
stratification, alpha…) and watch the result recompute live, with A/A calibration
|
|
120
125
|
always in view. *The priority interface.*
|
|
@@ -34,6 +34,7 @@ abkit/cli/assets/claude/skills/abk-validate/SKILL.md
|
|
|
34
34
|
abkit/cli/commands/__init__.py
|
|
35
35
|
abkit/cli/commands/_context.py
|
|
36
36
|
abkit/cli/commands/clean.py
|
|
37
|
+
abkit/cli/commands/dashboard.py
|
|
37
38
|
abkit/cli/commands/explore.py
|
|
38
39
|
abkit/cli/commands/init.py
|
|
39
40
|
abkit/cli/commands/init_claude.py
|
|
@@ -145,11 +146,15 @@ abkit/stats/sequential/confidence_sequence.py
|
|
|
145
146
|
abkit/stats/sequential/mixture.py
|
|
146
147
|
abkit/tuning/__init__.py
|
|
147
148
|
abkit/tuning/config_writer.py
|
|
149
|
+
abkit/tuning/dashboard_server.py
|
|
148
150
|
abkit/tuning/html.py
|
|
151
|
+
abkit/tuning/jobs.py
|
|
152
|
+
abkit/tuning/overview.py
|
|
149
153
|
abkit/tuning/payload.py
|
|
150
154
|
abkit/tuning/recompute.py
|
|
151
155
|
abkit/tuning/server.py
|
|
152
156
|
abkit/tuning/session.py
|
|
157
|
+
abkit/tuning/assets/dashboard.js
|
|
153
158
|
abkit/tuning/assets/explore.js
|
|
154
159
|
abkit/utils/__init__.py
|
|
155
160
|
abkit/utils/datetime_utils.py
|
|
@@ -10,7 +10,7 @@ from __future__ import annotations
|
|
|
10
10
|
|
|
11
11
|
from typing import Any
|
|
12
12
|
|
|
13
|
-
__version__ = "0.
|
|
13
|
+
__version__ = "0.6.0"
|
|
14
14
|
|
|
15
15
|
#: Symbols re-exported lazily from ``abkit.stats`` (PEP 562) so importing
|
|
16
16
|
#: ``abkit`` for ``__version__`` (the CLI path) stays numpy-free and fast.
|
|
@@ -34,7 +34,7 @@ files are installed by `abk init-claude` and track the installed abkit version
|
|
|
34
34
|
| If the task is about… | Read |
|
|
35
35
|
|---|---|
|
|
36
36
|
| What abkit is, the `load → compute → readout` pipeline, the `_ab_*` tables, glossary | `.claude/rules/ab-analysis-kit/overview.md` |
|
|
37
|
-
| `abk` commands, `--select`/`--metric`/`--method` selectors, `--from`/`--to`, `--full-refresh`, locks, `abk clean`, `abk test-report` | `.claude/rules/ab-analysis-kit/cli.md` |
|
|
37
|
+
| `abk` commands, `--select`/`--metric`/`--method` selectors, `--from`/`--to`, `--full-refresh`, locks, `abk clean`, `abk test-report`, the project dashboard (`abk dashboard`) | `.claude/rules/ab-analysis-kit/cli.md` |
|
|
38
38
|
| `abkit_project.yml`, `profiles.yml`, DB connections, statistical defaults, two-tier alpha, `notification_channels` | `.claude/rules/ab-analysis-kit/project.md` |
|
|
39
39
|
| An experiment YAML: variants, comparisons, cadence/horizon, SRM, the sequential toggle | `.claude/rules/ab-analysis-kit/experiments.md` |
|
|
40
40
|
| A reusable metric YAML: `type` (sample/fraction/ratio), column roles, one-row-per-unit SQL, CUPED covariate | `.claude/rules/ab-analysis-kit/metrics.md` |
|
|
@@ -13,6 +13,7 @@ task = one `abk` invocation), so a broken run fails the job instead of exiting 0
|
|
|
13
13
|
| `abk init-claude` | (Re)install this AI context: managed `CLAUDE.md` block + `.claude/rules/ab-analysis-kit/` + `.claude/skills/` |
|
|
14
14
|
| `abk run --select <exp>` | Run the load → compute → readout pipeline for an experiment |
|
|
15
15
|
| `abk explore --select <exp>` | Serve the interactive cockpit — tune the method live, write it back (see `explore.md`) |
|
|
16
|
+
| `abk dashboard` | Serve the project-level cockpit: one row per experiment, buttons that spawn `abk` commands |
|
|
16
17
|
| `abk validate --select <exp>` | The A/A false-positive + power matrix — is a method calibrated on this data? (see `validate.md`) |
|
|
17
18
|
| `abk plan --select <exp>` | Read-only pre-launch sizing: required-N / achievable-MDE / power (see `plan.md`) |
|
|
18
19
|
| `abk unlock --select <exp>` | Clear a stuck pipeline / validate lock |
|
|
@@ -29,18 +30,20 @@ experiment references reusable metrics:
|
|
|
29
30
|
- **`--select` / `-s` selects an EXPERIMENT** (`experiments/<name>.yml`). Forms:
|
|
30
31
|
bare **name** (`example_signup_test` — do NOT add `.yml`), **path / glob**
|
|
31
32
|
(`"experiments/checkout/*.yml"`, `"signup_*"`), **tag** (`tag:actual`), and
|
|
32
|
-
`"*"` for all. Repeatable. `run`/`validate`/`plan`/`unlock`/`clean`
|
|
33
|
-
**all experiments** when `--select` is omitted; `explore` requires
|
|
33
|
+
`"*"` for all. Repeatable. `run`/`validate`/`plan`/`unlock`/`clean`/`dashboard`
|
|
34
|
+
default to **all experiments** when `--select` is omitted; `explore` requires
|
|
35
|
+
exactly one.
|
|
34
36
|
- **`--metric <name>` selects a LIBRARY metric** within the chosen experiment(s)
|
|
35
|
-
— a single metric name, never a glob. It narrows
|
|
36
|
-
comparison (`explore`, `validate`, `plan`).
|
|
37
|
+
— a single metric name, never a glob. It narrows a command to that metric's
|
|
38
|
+
comparison(s) (`run`, `explore`, `validate`, `plan`, `verify-incremental`).
|
|
37
39
|
- **`--method <name>` (validate only) is the method-grid axis** — an extra
|
|
38
40
|
registered method to score *beyond* the declared comparison. It is NOT a
|
|
39
41
|
selector; do not confuse it with `--select`.
|
|
40
42
|
|
|
41
43
|
Experiment AND metric names share ONE global namespace and are the DB key —
|
|
42
44
|
selection/uniqueness errors name the namespace and the colliding file. `--exclude`
|
|
43
|
-
(on `run`) removes matches
|
|
45
|
+
(on `run` and `dashboard`) removes matches
|
|
46
|
+
(`--select "*" --exclude "experiments/staging/*"`).
|
|
44
47
|
|
|
45
48
|
## `abk init`
|
|
46
49
|
|
|
@@ -70,7 +73,8 @@ to refresh this context.
|
|
|
70
73
|
## `abk run`
|
|
71
74
|
|
|
72
75
|
```bash
|
|
73
|
-
abk run [--select <exp>] [--exclude <sel>] [--
|
|
76
|
+
abk run [--select <exp>] [--exclude <sel>] [--metric <m>] \
|
|
77
|
+
[--steps validate,plan,load,state,compute] \
|
|
74
78
|
[--from TS] [--to TS] [--full-refresh] [--resync-cohort] [--workers N] \
|
|
75
79
|
[--report [PATH]] [--force] [--profile NAME]
|
|
76
80
|
```
|
|
@@ -85,6 +89,22 @@ It is incremental by
|
|
|
85
89
|
an anti-join — only cutoffs past the `data_lag` watermark and not already computed
|
|
86
90
|
are (re)computed, so re-running is idempotent.
|
|
87
91
|
|
|
92
|
+
- `--metric <m>` (0.6.0) — recompute only that metric's comparison(s); the same
|
|
93
|
+
metric axis `explore`/`validate`/`plan`/`verify-incremental` take. Other
|
|
94
|
+
metrics' **results** are left exactly as they are, and the **alphas do not
|
|
95
|
+
move** (the two-tier scheme comes from the config, not from what one run
|
|
96
|
+
computes). `--full-refresh --metric <m>` is the "reprocess just this metric"
|
|
97
|
+
path. Day state is the one thing a narrowed run may still touch elsewhere,
|
|
98
|
+
because a stale-but-contiguous day is invisible to the reader's gap check: a
|
|
99
|
+
scoped `--full-refresh` TRUNCATES the other eligible metrics' day state from
|
|
100
|
+
the first day the window touches through the end of that series (not
|
|
101
|
+
re-rendered — reads fall back to recompute until a run that includes them
|
|
102
|
+
re-derives it), and in copy mode `--resync-cohort` rebuilds the whole cohort so
|
|
103
|
+
day state is re-materialized for every eligible metric. Both follow the `state`
|
|
104
|
+
step (omit it from `--steps` and no day state is touched), both are decided PER
|
|
105
|
+
EXPERIMENT, and the run prints which applies. Only compute ever narrows them. The cohort load and the SRM gate stay
|
|
106
|
+
experiment-level. An experiment without that comparison is skipped with a
|
|
107
|
+
printed line; a metric matching nowhere is an error.
|
|
88
108
|
- `--steps` (default `validate,plan,load,state,compute`) — comma-separated steps.
|
|
89
109
|
**`--steps validate` alone is the config lint** (no DB, no lock): it parses the
|
|
90
110
|
YAML, lints every metric SQL for the one-row-per-unit contract and the cohort
|
|
@@ -135,6 +155,46 @@ without launching a browser. Takes no pipeline lock (it only edits a config file
|
|
|
135
155
|
re-run `abk run` afterward to recompute under the new config. Full reference:
|
|
136
156
|
`explore.md`.
|
|
137
157
|
|
|
158
|
+
## `abk dashboard`
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
abk dashboard [--select <sel>]... [--exclude <sel>]... [--window 24h|7d|30d|90d|all] \
|
|
162
|
+
[--no-open] [--profile NAME]
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
The project-level cockpit (0.6.0): one row per selected experiment — headline
|
|
166
|
+
verdict, effect, p-value, last look and a sparkline — served on localhost with a
|
|
167
|
+
per-start token that authorizes EVERY request, `GET` included. The page boots on
|
|
168
|
+
metadata only and fills each row on demand (3 requests in flight), so a
|
|
169
|
+
hundred-experiment project renders instantly.
|
|
170
|
+
|
|
171
|
+
**A launcher, not a worker.** It runs no pipeline step, computes no statistic,
|
|
172
|
+
takes **no pipeline lock** and writes no config: verdicts come from the same
|
|
173
|
+
`readout.evaluate()` decision `abk run --report` bakes, and the Run / Explore /
|
|
174
|
+
Unlock / Clean buttons each spawn a real `abk` subprocess (inheriting
|
|
175
|
+
`--profile`), streaming its log into a job drawer. `run`/`unlock`/`clean` are
|
|
176
|
+
one-at-a-time project-wide (a second request is refused — they contend for the
|
|
177
|
+
pipeline lock); `explore` is exempt and deduped per experiment. Ctrl-C stops the
|
|
178
|
+
server and terminates every job it spawned.
|
|
179
|
+
|
|
180
|
+
- `--window` (default `30d`) bounds the **sparkline only** — every verdict,
|
|
181
|
+
effect and p-value is the FULL cumulative series' (dropping the oldest look
|
|
182
|
+
would truncate a stabilization history, not shorten the experiment). Switchable
|
|
183
|
+
on the page.
|
|
184
|
+
- `--exclude` removes matches from a broad `--select`, as on `abk run`.
|
|
185
|
+
- Configs are read ONCE at boot: restart after editing an experiment YAML.
|
|
186
|
+
- A project that has never run serves fine — every row reads `no data — press
|
|
187
|
+
Run`, and nothing here creates internal schema.
|
|
188
|
+
- **Read-only YAML.** `Show YAML` prints the file + its path for you to open in
|
|
189
|
+
your editor; there is no save endpoint. The config-writing surface is
|
|
190
|
+
`abk explore`'s Apply.
|
|
191
|
+
- **The URL is a credential** — whoever has it can spawn `abk run`/`abk clean`
|
|
192
|
+
in your project. Localhost-bound; do not share it or forward the port.
|
|
193
|
+
|
|
194
|
+
An empty selection warns and exits 0 without serving; an unknown `--window` is a
|
|
195
|
+
non-zero startup error, raised before the port is bound. Full reference:
|
|
196
|
+
https://abkit.pipelab.dev/guides/dashboard/.
|
|
197
|
+
|
|
138
198
|
## `abk validate`
|
|
139
199
|
|
|
140
200
|
```bash
|
|
@@ -264,6 +324,9 @@ abk run --select example_signup_test --report
|
|
|
264
324
|
|
|
265
325
|
# Reprocess after changing a metric query or a method param
|
|
266
326
|
abk run --select example_signup_test --full-refresh --from 2024-07-01 --to 2024-07-15
|
|
327
|
+
# ...or only the metric that changed (the other series keep their rows)
|
|
328
|
+
abk run --select example_signup_test --metric example_arpu \
|
|
329
|
+
--full-refresh --from 2024-07-01 --to 2024-07-15
|
|
267
330
|
abk clean --select example_signup_test # dry-run: preview orphaned rows
|
|
268
331
|
abk clean --select example_signup_test --execute # then prune them
|
|
269
332
|
|
|
@@ -272,6 +335,9 @@ abk plan --select example_signup_test --mde 0.05
|
|
|
272
335
|
abk validate --select example_signup_test
|
|
273
336
|
abk explore --select example_signup_test
|
|
274
337
|
|
|
338
|
+
# Watch the whole portfolio (and drive it) from one page
|
|
339
|
+
abk dashboard --select tag:actual
|
|
340
|
+
|
|
275
341
|
# Scheduled recompute of every experiment whose `tags:` list contains "actual" (cron / Prefect)
|
|
276
342
|
abk run --select tag:actual
|
|
277
343
|
|
|
@@ -146,5 +146,8 @@ serve normally to tune.
|
|
|
146
146
|
identity-param change, or BI shows duplicate stabilization lines.
|
|
147
147
|
- **SRM still gates.** A tuned significant effect on an SRM-failed experiment is
|
|
148
148
|
not trustworthy — the flag rides on the windshield; fix the assignment first.
|
|
149
|
+
- **One experiment at a time.** For the project-wide view — one row per
|
|
150
|
+
experiment, with a button that launches this cockpit — use `abk dashboard`
|
|
151
|
+
(`cli.md`). It tunes nothing itself.
|
|
149
152
|
|
|
150
153
|
> Installed by `abk init-claude`; tracks the installed abkit version.
|
|
@@ -161,7 +161,10 @@ validate` colours **this** metric's FPR against, overriding the project-wide
|
|
|
161
161
|
|
|
162
162
|
- **Changing the SQL** changes what is loaded but not stored history; recompute
|
|
163
163
|
the window with `abk run --select <exp> --full-refresh --from <start> --to <end>`
|
|
164
|
-
(`--full-refresh` requires both bounds).
|
|
164
|
+
(`--full-refresh` requires both bounds). Add `--metric <this metric>` (0.6.0) to
|
|
165
|
+
reprocess only this series: the experiment's other metrics keep their results
|
|
166
|
+
(their day state is truncated from the first day the window touches onward,
|
|
167
|
+
so a later run re-derives it from the current facts).
|
|
165
168
|
- Metric results are keyed by the method identity (`method_config_id`), which
|
|
166
169
|
lives on the **experiment's comparison**, not here — see `methods.md`. Editing
|
|
167
170
|
an identity param orphans the prior result series (`abk clean` prunes).
|
|
@@ -38,7 +38,8 @@ Every `abk run` executes three stages per experiment:
|
|
|
38
38
|
skipped (anti-join on `end_ts`, honoring `data_lag`).
|
|
39
39
|
3. **readout** — recomputes the WIN / LOSE / FLAT / INCONCLUSIVE verdict at
|
|
40
40
|
render time from `_ab_results` (never persisted), applies two-tier alpha and
|
|
41
|
-
the SRM/horizon gates. Emitted by `abk run --report`, `abk explore
|
|
41
|
+
the SRM/horizon gates. Emitted by `abk run --report`, `abk explore`, and
|
|
42
|
+
`abk dashboard` (one row per experiment, plus the same report on demand).
|
|
42
43
|
|
|
43
44
|
Run a subset of stages with `--steps` (e.g. `abk run --steps validate` is the
|
|
44
45
|
**config lint** — do not confuse it with `abk validate`, the A/A matrix).
|
|
@@ -192,7 +192,10 @@ abk run --select <experiment> --steps load
|
|
|
192
192
|
Editing a metric's SQL later changes what is loaded but not stored history —
|
|
193
193
|
recompute the affected cutoffs with `abk run --select <experiment>
|
|
194
194
|
--full-refresh --from <start> --to <end>` (`--full-refresh` requires both
|
|
195
|
-
`--from` and an exclusive `--to`).
|
|
195
|
+
`--from` and an exclusive `--to`). Since 0.6.0, add `--metric <this metric>` to
|
|
196
|
+
reprocess only this series: the experiment's other metrics keep their rows (their
|
|
197
|
+
day state is truncated from the first day the window touches onward, so a later
|
|
198
|
+
run re-derives it), and the two-tier alphas are unchanged either way.
|
|
196
199
|
|
|
197
200
|
## Step 7 — Report and hand off
|
|
198
201
|
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"""``abk dashboard`` — the project-level cockpit shell (m11 plan DASH-6).
|
|
2
|
+
|
|
3
|
+
Orchestration only, and deliberately thinner than ``abk explore``'s: resolve the
|
|
4
|
+
selection (MANY experiments, not one), open ONE manager, and hand
|
|
5
|
+
``tuning.serve_dashboard`` the pieces DASH-3/DASH-5 declared. Every number on the
|
|
6
|
+
page is computed later, per row, by the server — this module reads nothing from
|
|
7
|
+
the warehouse and takes no lock.
|
|
8
|
+
|
|
9
|
+
Three deliberate differences from ``run_explore``, each a consequence of the
|
|
10
|
+
dashboard being a **launcher, not a reader**:
|
|
11
|
+
|
|
12
|
+
* **No single-experiment restriction.** ``--select``/``--exclude`` resolve the
|
|
13
|
+
whole selection, exactly as ``abk run`` does; the dashboard is the surface that
|
|
14
|
+
exists to show them side by side.
|
|
15
|
+
* **No never-run noop.** ``abk explore`` refuses a project with no persisted rows
|
|
16
|
+
(there is nothing to tune). Here that project is the normal first case: rows
|
|
17
|
+
render "no data — press Run", and the Run button is the answer. So a missing
|
|
18
|
+
``_ab_results`` is not an error, and nothing here creates it — the dashboard
|
|
19
|
+
never writes schema.
|
|
20
|
+
* **No startup orphan scan.** Explore's is one ``list_method_config_ids`` query
|
|
21
|
+
for its one experiment. Doing it per row here would put N warehouse queries in
|
|
22
|
+
front of a page whose whole design is a metadata-only boot (DASH-3), so the
|
|
23
|
+
orphan warning stays where a per-experiment command already prints it
|
|
24
|
+
(``abk run``, ``abk explore``, ``abk clean``).
|
|
25
|
+
|
|
26
|
+
It also owns the one startup warning DASH-4 deferred here: a job is a spawned
|
|
27
|
+
``abk`` process with the CWD dropped from ``sys.path``, so an abkit that is not
|
|
28
|
+
installed makes EVERY button fail identically — said once, before the page
|
|
29
|
+
opens, instead of N times in the drawer
|
|
30
|
+
(:func:`_spawned_jobs_can_import_abkit`).
|
|
31
|
+
|
|
32
|
+
Failures raise ``click.ClickException`` → non-zero exit (the house rule).
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
from __future__ import annotations
|
|
36
|
+
|
|
37
|
+
import importlib.machinery
|
|
38
|
+
import os
|
|
39
|
+
import sys
|
|
40
|
+
from pathlib import Path
|
|
41
|
+
|
|
42
|
+
import click
|
|
43
|
+
|
|
44
|
+
from abkit.cli._output import echo_done
|
|
45
|
+
from abkit.cli.commands._context import load_project_context
|
|
46
|
+
from abkit.config import select_experiments
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def _spawned_jobs_can_import_abkit(project_root: Path) -> bool:
|
|
50
|
+
"""Would a job spawned by a button be able to import abkit at all?
|
|
51
|
+
|
|
52
|
+
Every job runs ``python -c`` with ``''`` and its own CWD (the project root)
|
|
53
|
+
dropped from ``sys.path`` before the first import — deliberately, so a
|
|
54
|
+
``click.py`` sitting in the operator's project cannot shadow the real one
|
|
55
|
+
(``dashboard_server._CLI_BOOTSTRAP``). The consequence DASH-4 recorded and
|
|
56
|
+
left to this command: from a bare source checkout that was never installed,
|
|
57
|
+
the dropped directory is the ONLY place abkit lives, so every job dies with
|
|
58
|
+
``ModuleNotFoundError`` in its own drawer — N identical failures nobody can
|
|
59
|
+
read a cause out of. Warn ONCE, here, before the cockpit opens.
|
|
60
|
+
|
|
61
|
+
It asks the child's own question — *does ``abkit`` resolve without the
|
|
62
|
+
CWD?* — through both import mechanisms, because either alone answers wrong:
|
|
63
|
+
a ``sys.path`` search misses a **strict editable** install (setuptools puts
|
|
64
|
+
a finder in ``sys.meta_path``, so nothing on ``sys.path`` resolves
|
|
65
|
+
``abkit``), and the meta-path finders alone miss an ordinary site-packages
|
|
66
|
+
or ``PYTHONPATH`` install. Distribution *metadata* is deliberately NOT a
|
|
67
|
+
signal: it is present and stale in a checkout whose install was removed, and
|
|
68
|
+
trusting it there suppresses the warning in exactly the environment that
|
|
69
|
+
needs it (found by the DASH-7 exit gate, whose own spawning legs skip in
|
|
70
|
+
such a checkout). Probed in-process rather than by spawning
|
|
71
|
+
``abk --version``: same answer, no process per startup.
|
|
72
|
+
"""
|
|
73
|
+
dropped = {"", os.getcwd(), str(project_root)}
|
|
74
|
+
paths = [entry for entry in sys.path if entry not in dropped]
|
|
75
|
+
try:
|
|
76
|
+
if importlib.machinery.PathFinder.find_spec("abkit", paths) is not None:
|
|
77
|
+
return True
|
|
78
|
+
except (ImportError, ValueError, AttributeError):
|
|
79
|
+
pass
|
|
80
|
+
for finder in sys.meta_path:
|
|
81
|
+
if finder is importlib.machinery.PathFinder:
|
|
82
|
+
continue # already asked, over the REDUCED path
|
|
83
|
+
find_spec = getattr(finder, "find_spec", None)
|
|
84
|
+
if find_spec is None:
|
|
85
|
+
continue
|
|
86
|
+
try:
|
|
87
|
+
if find_spec("abkit", None) is not None:
|
|
88
|
+
return True
|
|
89
|
+
except Exception: # noqa: BLE001 — a third-party finder must not break a cockpit
|
|
90
|
+
continue
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
def run_dashboard(
|
|
95
|
+
select: tuple[str, ...],
|
|
96
|
+
exclude: tuple[str, ...],
|
|
97
|
+
profile: str | None,
|
|
98
|
+
window: str,
|
|
99
|
+
no_open: bool,
|
|
100
|
+
) -> None:
|
|
101
|
+
from abkit.database.internal_tables import InternalTablesManager
|
|
102
|
+
from abkit.tuning import UnknownWindowPreset, serve_dashboard
|
|
103
|
+
|
|
104
|
+
context = load_project_context(require_profiles=True)
|
|
105
|
+
selected, selection_warnings = select_experiments(context.root, select, exclude)
|
|
106
|
+
for warning in selection_warnings:
|
|
107
|
+
click.echo(click.style(f" ⚠ {warning}", fg="yellow"))
|
|
108
|
+
if not selected:
|
|
109
|
+
# The house idiom for an empty selection (`abk run`/`abk validate`): the
|
|
110
|
+
# unmatched-selector warning above already said what happened, and
|
|
111
|
+
# serving a cockpit with zero rows would be a page about nothing.
|
|
112
|
+
echo_done("Nothing selected.")
|
|
113
|
+
return
|
|
114
|
+
|
|
115
|
+
click.echo(click.style(f"Dashboard: {context.project.name}", fg="cyan", bold=True))
|
|
116
|
+
click.echo(f" │ {len(selected)} experiment(s) selected — verdicts load per row, on demand.")
|
|
117
|
+
if not _spawned_jobs_can_import_abkit(context.root):
|
|
118
|
+
click.echo(
|
|
119
|
+
click.style(
|
|
120
|
+
" ⚠ abkit is not installed in this interpreter — the page will load, "
|
|
121
|
+
"but every button spawns a job that cannot import abkit "
|
|
122
|
+
"(ModuleNotFoundError). Install it first: `pip install -e .` "
|
|
123
|
+
"(or `pip install ab-analysis-kit`).",
|
|
124
|
+
fg="yellow",
|
|
125
|
+
bold=True,
|
|
126
|
+
)
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
manager = context.profiles.create_manager(profile)
|
|
130
|
+
try:
|
|
131
|
+
serve_dashboard(
|
|
132
|
+
project=context.project,
|
|
133
|
+
project_root=context.root,
|
|
134
|
+
experiments=selected,
|
|
135
|
+
tables=InternalTablesManager(manager),
|
|
136
|
+
initial_window=window,
|
|
137
|
+
profile=profile,
|
|
138
|
+
# DASH-5's Open button renders the same report `abk run --report`
|
|
139
|
+
# writes: the metric configs become its metric descriptions, and the
|
|
140
|
+
# raw manager (the one `tables` wraps, used under the server's
|
|
141
|
+
# db_lock) lets the no-copy default snapshot the live cohort for the
|
|
142
|
+
# SRM chip's observed counts. Both degrade in the open without us.
|
|
143
|
+
metrics=context.metrics_by_name,
|
|
144
|
+
manager=manager,
|
|
145
|
+
open_browser=not no_open,
|
|
146
|
+
echo=click.echo,
|
|
147
|
+
)
|
|
148
|
+
except UnknownWindowPreset as exc:
|
|
149
|
+
# Raised at boot, before a socket exists — where the operator typed it.
|
|
150
|
+
# The server's OTHER startup refusal (a duplicated experiment name) gets
|
|
151
|
+
# no handler on purpose: `select_experiments` already enforces uniqueness
|
|
152
|
+
# over the one global namespace, so reaching it would be an abkit bug,
|
|
153
|
+
# and a bug deserves its traceback rather than a tidy `Error:` line.
|
|
154
|
+
raise click.ClickException(f"--window: {exc}") from exc
|
|
155
|
+
finally:
|
|
156
|
+
manager.close()
|
|
157
|
+
|
|
158
|
+
echo_done("Dashboard stopped.")
|