Run one complete Discovery tutorial
Create a fresh Domain, submit the included observations, inspect before/after responses, and query retained state from one Python file.
session_id: ignored for compatibility.
For a complete declaration with both predictor inputs and causal bindings initially unresolved, see Autonomous causal discovery. The causal-bindings tab below shows the mixed variant with reviewed predictor inputs.
Choose a declaration
- Numeric
- Categorical
- Structure
- Reviewed fields
- Causal bindings
This Domain declares the numeric target and lets Adapt-1 discover the stable input projection.Send complete observations in order. The first events can return Verify:
projection_accumulating. Continue while storage succeeds and inspect the projection until it becomes ready.At query time, omit the target:Learn unknown action effects
A Discovery Domain can expose public measurements and legal opaque actions while leaving their effects unresolved. Adapt-1 learns from the observed changes produced by executing those actions.
This setup supplies no action-effect mapping, hidden topology, reversibility rule, or one-to-one assignment between actions and effects. The target identifies what to learn from the observations.
Leave transition
input_paths empty and enable autonomous_projection. When the records support causal learning, also enable discover_causal_bindings and causal_graph, with the intervention binding and causal-variable declaration unresolved. The autonomous causal example shows this declaration and its event contract.
Use the following loop:
- Capture the public state before the action.
- Obtain a legal action from the configured selector or experiment schedule, then execute that exact action.
- Observe the resulting public state and outcome.
- Submit the pre-action measurements, executed action, and observed consequence with their true episode and step.
- Inspect learner admission, discovered inputs, bindings, and model versions.
- Query from the next public state and inspect predictions or policy attribution from the retained evidence.
action_path identifies the field containing the executed action. The causal intervention binding identifies evidence of an intervention on a measured variable. An opaque action ID does not automatically name that variable. Inspect the discovered causal bindings separately from action-conditioned prediction.
Learn choices from measured outcomes
Use Transition Discovery to predict an immediate reward from current measurements and a permitted choice. For example, a monitoring service can issue one of two condition classifications from numeric readings, then receive a correctness score for the classification it issued. The scoring system keeps the reference category and returns the measured score for that choice. Declare the measured reward as a numeric transition target, leaveinput_paths empty, and enable autonomous_projection. Include the chosen action in completed events. Measurement fields can use stable names such as x_00 and x_01; preserve each field’s meaning, type, and units across records.
- Capture the measurements available before the outcome.
- Query the same measurements with each permitted candidate action and the reward withheld.
- Have the application compare supported reward predictions and choose an action under its declared selection or exploration rule.
- Execute or issue that choice and observe its reward.
- Submit the original measurements, the choice actually used, and its observed reward as a completed event to the same Domain.
- Continue in chronological order so later predictions can use the new evidence.
transition_prediction supplies the estimates; the application performs comparison and selection. Record abstentions and any fallback choice. Return the reward actually observed for the executed choice.
Keep each prediction recorded before its outcome is submitted. Continued event ingestion lets the reward predictor update as new outcomes arrive. Inspect admission and learner versions even when the retained sample count or discovered input paths stay fixed; see Readiness and continued learning.
When actions change later states and later outcomes should revise earlier choices, add Sequential Discovery with its ordered feedback contract.
Sequential Discovery
Use Sequential Discovery when actions change later states and later rewards should revise earlier choices. An opaque-action loop can expose public observation fields and legal actions while leaving their useful action values and action-effect structure for Adapt-1 to form:- query current public state
- execute the selected legal action
- observe the public next state and native reward
- return episode ID, step, next state, reward, and terminal status
- query again from retained Discovery state
learning.sequential.enabled: true with real episode, step, next-state, reward, and terminal paths. Preserve the selected policy and decision_id through execution. Inspect sequential sample counts and selection attribution before claiming that retained state influenced a later action.
See Sequential Discovery for the starting declaration and Sequential learning, advanced for the full policy, reward, training, and evaluation contract.
Executable runner pattern
The following is a zero-start online pattern shared by the Discovery paths. For separate acquisition, run the evidence-formation steps before the declared new-run boundary, then freeze the resulting state or continue adapting according to the protocol:- create a unique Domain
- send eligible events or feedback
- inspect path-specific admission on every write
- wait for usable discovered state
- query, select, or predict
- return the observable consequence when applicable
- verify that a later result uses the intended retained state
domain_id for an independent rerun. When a reported run starts empty, state retained across its episodes belongs to that run. For held-out frozen evaluation, split entities or episodes before ingestion, form state only on the acquisition partition, record the final learner state and version, stop event and feedback writes, and verify state identity remains unchanged through scoring.
Common setup failures
Discovery
Understand the Discovery boundary and lifecycle.
Transition Discovery
Review projection fields, revisions, and causal bindings.
Structure Discovery
Review discovered fields, combinations, temporal relationships, and induced rules.
Sequential Discovery
Review ordered feedback, delayed credit, readiness, and action attribution.
