@elaraai/e3-ui 1.0.12 → 1.0.13

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/experiment/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAEH,QAAQ,EACR,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,EACV,WAAW,EACX,UAAU,EAIV,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAC1B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAU,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEhE,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EACH,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,WAAW,EAEd,MAAM,YAAY,CAAC;AAIpB,OAAO,EACH,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,QAAQ,EACR,kBAAkB,EAClB,MAAM,EACN,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,cAAc,EACd,WAAW,EACX,cAAc,GACjB,MAAM,YAAY,CAAC;AAOpB;;;;;GAKG;AACH,MAAM,MAAM,YAAY,CAAC,GAAG,SAAS,UAAU,IAC3C,SAAS,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,kBAAkB,CAAC,EAAE,oBAAoB,CAAC,CAAC;AAE1E;;;;;GAKG;AACH,MAAM,MAAM,UAAU,CAAC,GAAG,SAAS,UAAU,IACzC,SAAS,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,kBAAkB,CAAC,EAAE,gBAAgB,CAAC,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8
  * @remarks
9
- * `Experiment` lets a domain expert ask *"did X change Y?"* against a dataset
10
- * and trust the answer, without meeting a statistician's vocabulary. It is a
11
- * registered extension component (architecturally like {@link Ontology}): the
12
- * author writes one tag, `Experiment.Root({ })`; the React renderer lives in
13
- * `@elaraai/e3-ui-components` and is wired via
14
- * `implementUIComponent(Experiment.Component, EastChakraExperiment)`.
9
+ * `Experiment` lets a domain expert ask *"did X change Y, and can I trust it?"*
10
+ * against a dataset and read a derived, honest answer without meeting a
11
+ * statistician's vocabulary. It is a registered extension component
12
+ * (architecturally like {@link Ontology}): the author writes one tag,
13
+ * `Experiment.Root({ })`; the React renderer lives in
14
+ * `@elaraai/e3-ui-components`.
15
15
  *
16
16
  * **Generic over the input row, like `Table`.** The author binds the input
17
- * dataset (`data: BoundValue<ArrayType<Row>>`); the renderer introspects its
18
- * row struct to drive the treatment / outcome / confounder pickers, so the
19
- * **end user** re-frames the experiment from the dataset's own columns.
17
+ * dataset (`data: BoundValue<ArrayType<Row>>`); the renderer introspects its row
18
+ * struct to drive the treatment / outcome / confounder pickers.
20
19
  *
21
- * **The user adjusts results go stale Run re-computes.** Editing a picker
22
- * stages a new {@link ExperimentSpecType} and marks the result stale; **Run**
23
- * calls the author-supplied estimator functions ({@link Func.bind} handles) and
24
- * the answer arrives reactively; **Commit** appends to the journal. The causal
25
- * compute (DoWhy / EconML) lives entirely in those function bodies, so `e3-ui`
26
- * never imports `east-py-datascience`.
20
+ * **The user edits the config Apply runs ONE function.** Editing a picker
21
+ * stages a new {@link ExperimentConfigType}; **Apply** calls the single bound
22
+ * `experiment` function (`(rows, config) ExperimentResult`) and the answer
23
+ * arrives reactively. The result carries the naive vs adjusted effect, balance,
24
+ * overlap, robustness, and an honesty **verdict** `adjusted` is `none` when the
25
+ * engine refuses. **Commit** appends to the journal.
27
26
  *
28
- * **Visual-first and derived.** Because the user frames an arbitrary
29
- * experiment, nothing on the result side is hand-authored every word is a
30
- * column name the user picked, a number an estimator returned, or a status
31
- * derived by rule (interval clears zero → HIGHER / LOWER; spans zero → NO CLEAR
32
- * EFFECT; raw and adjusted disagree in sign → the "misleading" banner). The
33
- * contract types ({@link ExperimentSpecType}, {@link ExperimentResultType}, …)
34
- * live in {@link "./experiment/types"} and are reached via `Experiment.Types.*`.
27
+ * **Visual-first and derived.** Nothing on the result side is hand-authored —
28
+ * every word is a column name the user picked, a number the engine returned, or
29
+ * a status derived by rule from the verdict tag.
35
30
  *
36
31
  * @packageDocumentation
37
32
  */
38
- import { East, NullType, BooleanType, StringType, ArrayType, StructType, VariantType, OptionType, none, some, variant, } from '@elaraai/east';
33
+ import { NullType, BooleanType, ArrayType, StructType, VariantType, OptionType, East, none, some, variant, } from '@elaraai/east';
39
34
  import { EastUI } from '@elaraai/east-ui';
40
35
  import { DiffBindingType } from '../data.js';
41
36
  import { FuncBindingType } from '../func.js';
42
- import { ExperimentSpecType, ExperimentResultType, RefuteResultType, DoseResultType, JournalType, ColumnMetaType, } from './types.js';
37
+ import { ExperimentConfigType, ExperimentResultType, DoseResponseType, JournalType, ColumnMetaType, PopulationType, DesignConfigType, ExperimentDesignType, } from './types.js';
43
38
  // Re-export the contract types so consumers can reach them from the component
44
39
  // module too (the canonical home is `./types`).
45
- export { WeightingSchemeType, EstimatorType, TargetUnitsType, TrimType, ExperimentSpecType, CiType, BalanceRowType, ExperimentResultType, RefuteKindType, RefuteCheckType, RefuteResultType, DoseSegmentType, DoseResultType, JournalRowType, JournalType, ColumnMetaType, } from './types.js';
40
+ export { CiType, WeightingSchemeType, EstimatorType, TargetUnitsType, BootstrapConfigType, RefuteSpecType, ExperimentConfigType, BalanceRowType, OverlapDiagnosticType, RefutationType, DoseResponseType, ExperimentVerdictType, ExperimentResultType, JournalRowType, JournalType, ColumnMetaType, PopulationType, } from './types.js';
46
41
  // ============================================================================
47
42
  // Component payload — descriptors only (binding handles + options).
48
43
  // ============================================================================
49
- /** Initial result tab variant — `answer` (default), `trust`, or `dose`. */
50
- export const ExperimentTabType = VariantType({ answer: NullType, trust: NullType, dose: NullType });
44
+ /** Initial result tab variant — `answer` (default), `trust`, `dose`, or `validate`. */
45
+ export const ExperimentTabType = VariantType({ answer: NullType, trust: NullType, dose: NullType, validate: NullType });
51
46
  /**
52
47
  * The `Experiment` component payload — binding descriptors + options. Renderers
53
48
  * decode this and resolve each binding to a live, reactive value / call handle.
54
49
  *
55
50
  * @property data - {@link DiffBindingType} for the input dataset — the renderer
56
- * introspects its row struct for the pickers and passes it to the functions.
57
- * @property spec - {@link DiffBindingType} for the staged {@link ExperimentSpecType}.
58
- * @property estimate - {@link FuncBindingType} for the `estimate` function.
59
- * @property refute - Optional {@link FuncBindingType} for the `refute` function.
60
- * @property dose - Optional {@link FuncBindingType} for the `dose` function.
51
+ * introspects its row struct for the pickers and passes it to the function.
52
+ * @property config - {@link DiffBindingType} for the staged {@link ExperimentConfigType}.
53
+ * @property experiment - {@link FuncBindingType} for the single `experiment` function.
54
+ * @property population - Optional {@link DiffBindingType} for the staged Step-4
55
+ * population filter ({@link PopulationType}); narrows rows UI-side before the call.
61
56
  * @property journal - Optional {@link DiffBindingType} for the committed-experiment journal.
62
57
  * @property columnMeta - Optional per-column display metadata.
63
- * @property readonly - Render without the Run / Commit / edit affordances.
58
+ * @property readonly - Render without the Apply / Commit / edit affordances.
64
59
  * @property defaultTab - Initial result tab ({@link ExperimentTabType}).
65
60
  */
66
61
  export const ExperimentPayloadType = StructType({
67
62
  data: DiffBindingType,
68
- spec: DiffBindingType,
69
- estimate: FuncBindingType,
70
- refute: OptionType(FuncBindingType),
71
- dose: OptionType(FuncBindingType),
63
+ config: DiffBindingType,
64
+ experiment: FuncBindingType,
65
+ population: OptionType(DiffBindingType),
72
66
  journal: OptionType(DiffBindingType),
67
+ /** Optional `design` function → the validation-trial recipe ("Validate" tab). */
68
+ design: OptionType(FuncBindingType),
73
69
  columnMeta: OptionType(ColumnMetaType),
74
70
  readonly: OptionType(BooleanType),
75
71
  defaultTab: OptionType(ExperimentTabType),
@@ -80,11 +76,12 @@ export const ExperimentPayloadType = StructType({
80
76
  */
81
77
  export const ExperimentComponent = EastUI.component('Experiment', ExperimentPayloadType, { optional: true });
82
78
  /**
83
- * Build an Experiment surface bound to an input dataset + estimator functions.
79
+ * Build an Experiment surface bound to an input dataset + the single experiment
80
+ * function.
84
81
  *
85
82
  * @typeParam Row - The input dataset's row struct, inferred from `data`.
86
- * @param options - {@link ExperimentOptions}. `data`, `spec` and `estimate` are
87
- * required; the rest are optional.
83
+ * @param options - {@link ExperimentOptions}. `data`, `config` and `experiment`
84
+ * are required; the rest are optional.
88
85
  * @returns An East expression of {@link UIComponentType}.
89
86
  */
90
87
  function createExperiment(options) {
@@ -100,11 +97,11 @@ function createExperiment(options) {
100
97
  }])), ColumnMetaType));
101
98
  return ExperimentComponent.Root({
102
99
  data: options.data.binding,
103
- spec: options.spec.binding,
104
- estimate: options.estimate.binding,
105
- refute: options.refute !== undefined ? some(options.refute.binding) : none,
106
- dose: options.dose !== undefined ? some(options.dose.binding) : none,
100
+ config: options.config.binding,
101
+ experiment: options.experiment.binding,
102
+ population: options.population !== undefined ? some(options.population.binding) : none,
107
103
  journal: options.journal !== undefined ? some(options.journal.binding) : none,
104
+ design: options.design !== undefined ? some(options.design.binding) : none,
108
105
  columnMeta,
109
106
  readonly: options.readonly ?? none,
110
107
  defaultTab,
@@ -112,15 +109,13 @@ function createExperiment(options) {
112
109
  }
113
110
  /**
114
111
  * The Experiment component namespace. Surfaces an interactive causal-experiment
115
- * over a bound input dataset + estimator functions, generic over the row struct
116
- * (the `Table` pattern), with the staged-binding machinery the rest of e3-ui
117
- * uses.
112
+ * over a bound input dataset + a single `experiment` function, generic over the
113
+ * row struct (the `Table` pattern).
118
114
  *
119
115
  * @remarks
120
- * Use `Experiment.Root({ data, spec, estimate, refute, dose, journal })` inside
121
- * a `Reactive` block. The `Component` property is the {@link EastUI.component}
122
- * carrier the renderer registers against; `Types` exposes the render-contract
123
- * value types (`Spec`, `Result`, `Refute`, `Dose`, `Journal`, …).
116
+ * Use `Experiment.Root({ data, config, experiment, journal })` inside a
117
+ * `Reactive` block. `Types` exposes the render-contract value types (`Config`,
118
+ * `Result`, `Verdict`, `Overlap`, `Balance`, `Refutation`, `Journal`, …).
124
119
  */
125
120
  export const Experiment = {
126
121
  Root: createExperiment,
@@ -129,16 +124,20 @@ export const Experiment = {
129
124
  Types: {
130
125
  /** Rendered payload struct (bindings + options). */
131
126
  Payload: ExperimentPayloadType,
132
- /** The experiment-spec value type (what the pickers stage). */
133
- Spec: ExperimentSpecType,
134
- /** The estimator answer value type. */
127
+ /** The experiment-config value type (what the pickers stage). */
128
+ Config: ExperimentConfigType,
129
+ /** The result value type (numbers + verdict). */
135
130
  Result: ExperimentResultType,
136
- /** The robustness-battery value type. */
137
- Refute: RefuteResultType,
138
- /** The dose-response value type. */
139
- Dose: DoseResultType,
131
+ /** The ALE dose-response curve value type (the "How much?" tab). */
132
+ DoseResponse: DoseResponseType,
140
133
  /** The committed-experiment journal value type. */
141
134
  Journal: JournalType,
135
+ /** The validation-trial recipe value type (the "Validate" tab). */
136
+ Design: ExperimentDesignType,
137
+ /** The optional design-knobs value type. */
138
+ DesignConfig: DesignConfigType,
139
+ /** The UI-side Step-4 population filter value type (Array of Slice predicates). */
140
+ Population: PopulationType,
142
141
  /** Optional per-column display metadata. */
143
142
  ColumnMeta: ColumnMetaType,
144
143
  /** Initial result tab variant. */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/experiment/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EACH,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,EACV,WAAW,EACX,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,OAAO,GAGV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAwB,MAAM,kBAAkB,CAAC;AAE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