Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Stats Integration to take bundles of Experiments #2367

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

lukesonnet
Copy link
Contributor

@lukesonnet lukesonnet commented Apr 9, 2024

Overview

This PR rewrites the stats integration to allow for multiple bundles of DataForStatsEngines to be passed, each with an id, to the stats engine, to be returned with results alongside that id. The goal is to eventually allow for easier batch creation of multiple snapshots or snapshot analyses when needed (e.g. for impact analysis).

Previously the stats engine could take a snapshot and an array of analyses for that snapshot to be computed for each metric.

Now, the stats engine takes an an array of {snapshots, analyses} so that you can compute several analyses (each set of analyses potentially different from one another) for any number of snapshots (within or across experiments).

Details

It creates matching input and output objects in stats.d.ts and in python for an object with an ID and the payload (either data in or results out).

We create a helper that just does one experiment at a time to keep the current snapshot creation flow largely untouched beyond the actual python we're executing.

I also create createMultipleSnapshotAnalysis and postSnapshotsWithScaledImpactAnalysis for how this new functionality gets used to kick off multiple jobs at once (e.g. the batch update for the experiment impact analysis).


This PR also adds default running scaled and absolute difference types to each stats engine call, since this should add minimal python runtime and will help reduce future burden when loading the dashboard for Impact Analysis.

@lukesonnet lukesonnet requested a review from jdorn April 9, 2024 21:34
@lukesonnet lukesonnet changed the title Allow Stats Integration to take Bundles of Experiments Allow Stats Integration to take bundles of Experiments Apr 9, 2024
Copy link

github-actions bot commented Apr 9, 2024

Your preview environment pr-2367-bttf has been deployed.

Preview environment endpoints are available at:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants