@elaraai/e3-ui 1.0.10 → 1.0.12
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.
- package/dist/src/experiment/index.d.ts +640 -0
- package/dist/src/experiment/index.d.ts.map +1 -0
- package/dist/src/experiment/index.js +148 -0
- package/dist/src/experiment/index.js.map +1 -0
- package/dist/src/experiment/types.d.ts +611 -0
- package/dist/src/experiment/types.d.ts.map +1 -0
- package/dist/src/experiment/types.js +330 -0
- package/dist/src/experiment/types.js.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +7 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +1 -0
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +3 -0
- package/dist/src/internal.js.map +1 -1
- package/dist/src/runtime/experiment.d.ts +48 -0
- package/dist/src/runtime/experiment.d.ts.map +1 -0
- package/dist/src/runtime/experiment.js +10 -0
- package/dist/src/runtime/experiment.js.map +1 -0
- package/dist/src/runtime/index.d.ts +1 -0
- package/dist/src/runtime/index.d.ts.map +1 -1
- package/dist/src/runtime/index.js +1 -0
- package/dist/src/runtime/index.js.map +1 -1
- package/dist/test/experiment/experiment.examples.d.ts +535 -0
- package/dist/test/experiment/experiment.examples.d.ts.map +1 -0
- package/dist/test/experiment/experiment.examples.js +177 -0
- package/dist/test/experiment/experiment.examples.js.map +1 -0
- package/package.json +7 -7
- package/dist/src/buttons.d.ts +0 -2
- package/dist/src/buttons.d.ts.map +0 -1
- package/dist/src/buttons.js +0 -2
- package/dist/src/buttons.js.map +0 -1
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/** @jsxImportSource @elaraai/e3-ui */
|
|
6
|
+
/**
|
|
7
|
+
* Experiment component example — an interactive causal-experiment surface over a
|
|
8
|
+
* generic manufacturing process. The worked question is *"did `slow_cure` change
|
|
9
|
+
* `bond_strength`?"* — a confounding-by-indication story: the optional slow-cure
|
|
10
|
+
* step is applied to the weaker incoming material, so the raw average makes it
|
|
11
|
+
* look worse (−3.1) while the like-for-like estimate flips it positive (+5.2).
|
|
12
|
+
*
|
|
13
|
+
* Pattern (the real, interactive shape — not a mock):
|
|
14
|
+
* 1. `e3.input('batches', Array(BatchRow), [...])` — the **input dataset**. The
|
|
15
|
+
* renderer introspects this row struct to drive the treatment / outcome /
|
|
16
|
+
* confounder pickers, exactly like `Table`.
|
|
17
|
+
* 2. `e3.input('experiment_spec', Experiment.Types.Spec, {...})` — the staged
|
|
18
|
+
* experiment the pickers edit.
|
|
19
|
+
* 3. Three `e3.function`s — `estimate` / `refute` / `dose` — that return the
|
|
20
|
+
* `Experiment.Types.*` numeric contract. In production their bodies call
|
|
21
|
+
* east-py-datascience's (generic) Causal functions; here they are pure-East
|
|
22
|
+
* fixtures returning the constants the real estimator would (mirroring the
|
|
23
|
+
* `causalEffectConfounding` example), so the surface runs offline with no
|
|
24
|
+
* datascience dependency. The numbers the snapshot harness seeds for these
|
|
25
|
+
* functions live in `e3-ui-components/snapshot/main.tsx`, imported from here
|
|
26
|
+
* so the two copies cannot drift.
|
|
27
|
+
* 4. `<Experiment data spec estimate refute dose journal />`. The renderer
|
|
28
|
+
* auto-runs on mount, derives every word / colour / bar from the returned
|
|
29
|
+
* numbers, and re-runs when the user edits the spec.
|
|
30
|
+
*/
|
|
31
|
+
import { ArrayType, StructType, BooleanType, FloatType, IntegerType, StringType, DateTimeType, variant } from '@elaraai/east';
|
|
32
|
+
/** One production batch — the row struct the pickers are generic over. */
|
|
33
|
+
export declare const BatchRow: StructType<{
|
|
34
|
+
readonly slow_cure: BooleanType;
|
|
35
|
+
readonly bond_strength: FloatType;
|
|
36
|
+
readonly incoming_grade: FloatType;
|
|
37
|
+
readonly mix_viscosity: FloatType;
|
|
38
|
+
readonly supplier: IntegerType;
|
|
39
|
+
readonly line: StringType;
|
|
40
|
+
readonly product: StringType;
|
|
41
|
+
readonly run_date: DateTimeType;
|
|
42
|
+
}>;
|
|
43
|
+
export declare const batchesInput: import("@elaraai/e3").DatasetDef<ArrayType<StructType<{
|
|
44
|
+
readonly slow_cure: BooleanType;
|
|
45
|
+
readonly bond_strength: FloatType;
|
|
46
|
+
readonly incoming_grade: FloatType;
|
|
47
|
+
readonly mix_viscosity: FloatType;
|
|
48
|
+
readonly supplier: IntegerType;
|
|
49
|
+
readonly line: StringType;
|
|
50
|
+
readonly product: StringType;
|
|
51
|
+
readonly run_date: DateTimeType;
|
|
52
|
+
}>>, [variant<"field", "inputs">, variant<"field", "batches">]>;
|
|
53
|
+
export declare const experimentSpecInput: import("@elaraai/e3").DatasetDef<StructType<{
|
|
54
|
+
readonly treatment: StringType;
|
|
55
|
+
readonly outcome: StringType;
|
|
56
|
+
readonly confounders: ArrayType<StringType>;
|
|
57
|
+
readonly categorical: ArrayType<StringType>;
|
|
58
|
+
readonly population: import("@elaraai/east").OptionType<ArrayType<import("@elaraai/east").VariantType<{
|
|
59
|
+
readonly string: import("@elaraai/east").StructType<{
|
|
60
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
61
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
62
|
+
readonly eq: import("@elaraai/east").StringType;
|
|
63
|
+
readonly neq: import("@elaraai/east").StringType;
|
|
64
|
+
readonly in: import("@elaraai/east").SetType<import("@elaraai/east").StringType>;
|
|
65
|
+
readonly notIn: import("@elaraai/east").SetType<import("@elaraai/east").StringType>;
|
|
66
|
+
readonly contains: import("@elaraai/east").StringType;
|
|
67
|
+
readonly matches: import("@elaraai/east").StringType;
|
|
68
|
+
}>;
|
|
69
|
+
}>;
|
|
70
|
+
readonly integer: import("@elaraai/east").StructType<{
|
|
71
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
72
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
73
|
+
readonly eq: import("@elaraai/east").IntegerType;
|
|
74
|
+
readonly neq: import("@elaraai/east").IntegerType;
|
|
75
|
+
readonly lt: import("@elaraai/east").IntegerType;
|
|
76
|
+
readonly lte: import("@elaraai/east").IntegerType;
|
|
77
|
+
readonly gt: import("@elaraai/east").IntegerType;
|
|
78
|
+
readonly gte: import("@elaraai/east").IntegerType;
|
|
79
|
+
readonly in: import("@elaraai/east").SetType<import("@elaraai/east").IntegerType>;
|
|
80
|
+
}>;
|
|
81
|
+
}>;
|
|
82
|
+
readonly float: import("@elaraai/east").StructType<{
|
|
83
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
84
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
85
|
+
readonly lt: import("@elaraai/east").FloatType;
|
|
86
|
+
readonly lte: import("@elaraai/east").FloatType;
|
|
87
|
+
readonly gt: import("@elaraai/east").FloatType;
|
|
88
|
+
readonly gte: import("@elaraai/east").FloatType;
|
|
89
|
+
}>;
|
|
90
|
+
}>;
|
|
91
|
+
readonly datetime: import("@elaraai/east").StructType<{
|
|
92
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
93
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
94
|
+
readonly before: import("@elaraai/east").DateTimeType;
|
|
95
|
+
readonly after: import("@elaraai/east").DateTimeType;
|
|
96
|
+
readonly between: import("@elaraai/east").StructType<{
|
|
97
|
+
readonly from: import("@elaraai/east").DateTimeType;
|
|
98
|
+
readonly to: import("@elaraai/east").DateTimeType;
|
|
99
|
+
}>;
|
|
100
|
+
}>;
|
|
101
|
+
}>;
|
|
102
|
+
readonly boolean: import("@elaraai/east").StructType<{
|
|
103
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
104
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
105
|
+
readonly is: import("@elaraai/east").BooleanType;
|
|
106
|
+
}>;
|
|
107
|
+
}>;
|
|
108
|
+
}>>>;
|
|
109
|
+
readonly method: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
110
|
+
readonly linear_regression: import("@elaraai/east").NullType;
|
|
111
|
+
readonly propensity_score_weighting: StructType<{
|
|
112
|
+
readonly weighting_scheme: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
113
|
+
readonly ips_weight: import("@elaraai/east").NullType;
|
|
114
|
+
readonly ips_stabilized_weight: import("@elaraai/east").NullType;
|
|
115
|
+
readonly ips_normalized_weight: import("@elaraai/east").NullType;
|
|
116
|
+
}>>;
|
|
117
|
+
}>;
|
|
118
|
+
}>>;
|
|
119
|
+
readonly targetUnits: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
120
|
+
readonly ate: import("@elaraai/east").NullType;
|
|
121
|
+
readonly att: import("@elaraai/east").NullType;
|
|
122
|
+
readonly atc: import("@elaraai/east").NullType;
|
|
123
|
+
}>>;
|
|
124
|
+
readonly trim: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
125
|
+
readonly overlap: import("@elaraai/east").NullType;
|
|
126
|
+
readonly bounds: StructType<{
|
|
127
|
+
readonly lower: FloatType;
|
|
128
|
+
readonly upper: FloatType;
|
|
129
|
+
}>;
|
|
130
|
+
}>>;
|
|
131
|
+
}>, [variant<"field", "inputs">, variant<"field", "experiment_spec">]>;
|
|
132
|
+
export declare const estimateFn: import("@elaraai/e3").FunctionDef<[ArrayType<StructType<{
|
|
133
|
+
readonly slow_cure: BooleanType;
|
|
134
|
+
readonly bond_strength: FloatType;
|
|
135
|
+
readonly incoming_grade: FloatType;
|
|
136
|
+
readonly mix_viscosity: FloatType;
|
|
137
|
+
readonly supplier: IntegerType;
|
|
138
|
+
readonly line: StringType;
|
|
139
|
+
readonly product: StringType;
|
|
140
|
+
readonly run_date: DateTimeType;
|
|
141
|
+
}>>, StructType<{
|
|
142
|
+
readonly treatment: StringType;
|
|
143
|
+
readonly outcome: StringType;
|
|
144
|
+
readonly confounders: ArrayType<StringType>;
|
|
145
|
+
readonly categorical: ArrayType<StringType>;
|
|
146
|
+
readonly population: import("@elaraai/east").OptionType<ArrayType<import("@elaraai/east").VariantType<{
|
|
147
|
+
readonly string: import("@elaraai/east").StructType<{
|
|
148
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
149
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
150
|
+
readonly eq: import("@elaraai/east").StringType;
|
|
151
|
+
readonly neq: import("@elaraai/east").StringType;
|
|
152
|
+
readonly in: import("@elaraai/east").SetType<import("@elaraai/east").StringType>;
|
|
153
|
+
readonly notIn: import("@elaraai/east").SetType<import("@elaraai/east").StringType>;
|
|
154
|
+
readonly contains: import("@elaraai/east").StringType;
|
|
155
|
+
readonly matches: import("@elaraai/east").StringType;
|
|
156
|
+
}>;
|
|
157
|
+
}>;
|
|
158
|
+
readonly integer: import("@elaraai/east").StructType<{
|
|
159
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
160
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
161
|
+
readonly eq: import("@elaraai/east").IntegerType;
|
|
162
|
+
readonly neq: import("@elaraai/east").IntegerType;
|
|
163
|
+
readonly lt: import("@elaraai/east").IntegerType;
|
|
164
|
+
readonly lte: import("@elaraai/east").IntegerType;
|
|
165
|
+
readonly gt: import("@elaraai/east").IntegerType;
|
|
166
|
+
readonly gte: import("@elaraai/east").IntegerType;
|
|
167
|
+
readonly in: import("@elaraai/east").SetType<import("@elaraai/east").IntegerType>;
|
|
168
|
+
}>;
|
|
169
|
+
}>;
|
|
170
|
+
readonly float: import("@elaraai/east").StructType<{
|
|
171
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
172
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
173
|
+
readonly lt: import("@elaraai/east").FloatType;
|
|
174
|
+
readonly lte: import("@elaraai/east").FloatType;
|
|
175
|
+
readonly gt: import("@elaraai/east").FloatType;
|
|
176
|
+
readonly gte: import("@elaraai/east").FloatType;
|
|
177
|
+
}>;
|
|
178
|
+
}>;
|
|
179
|
+
readonly datetime: import("@elaraai/east").StructType<{
|
|
180
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
181
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
182
|
+
readonly before: import("@elaraai/east").DateTimeType;
|
|
183
|
+
readonly after: import("@elaraai/east").DateTimeType;
|
|
184
|
+
readonly between: import("@elaraai/east").StructType<{
|
|
185
|
+
readonly from: import("@elaraai/east").DateTimeType;
|
|
186
|
+
readonly to: import("@elaraai/east").DateTimeType;
|
|
187
|
+
}>;
|
|
188
|
+
}>;
|
|
189
|
+
}>;
|
|
190
|
+
readonly boolean: import("@elaraai/east").StructType<{
|
|
191
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
192
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
193
|
+
readonly is: import("@elaraai/east").BooleanType;
|
|
194
|
+
}>;
|
|
195
|
+
}>;
|
|
196
|
+
}>>>;
|
|
197
|
+
readonly method: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
198
|
+
readonly linear_regression: import("@elaraai/east").NullType;
|
|
199
|
+
readonly propensity_score_weighting: StructType<{
|
|
200
|
+
readonly weighting_scheme: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
201
|
+
readonly ips_weight: import("@elaraai/east").NullType;
|
|
202
|
+
readonly ips_stabilized_weight: import("@elaraai/east").NullType;
|
|
203
|
+
readonly ips_normalized_weight: import("@elaraai/east").NullType;
|
|
204
|
+
}>>;
|
|
205
|
+
}>;
|
|
206
|
+
}>>;
|
|
207
|
+
readonly targetUnits: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
208
|
+
readonly ate: import("@elaraai/east").NullType;
|
|
209
|
+
readonly att: import("@elaraai/east").NullType;
|
|
210
|
+
readonly atc: import("@elaraai/east").NullType;
|
|
211
|
+
}>>;
|
|
212
|
+
readonly trim: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
213
|
+
readonly overlap: import("@elaraai/east").NullType;
|
|
214
|
+
readonly bounds: StructType<{
|
|
215
|
+
readonly lower: FloatType;
|
|
216
|
+
readonly upper: FloatType;
|
|
217
|
+
}>;
|
|
218
|
+
}>>;
|
|
219
|
+
}>], StructType<{
|
|
220
|
+
readonly effect: FloatType;
|
|
221
|
+
readonly ci: import("@elaraai/east").OptionType<StructType<{
|
|
222
|
+
readonly lower: FloatType;
|
|
223
|
+
readonly upper: FloatType;
|
|
224
|
+
}>>;
|
|
225
|
+
readonly naive: FloatType;
|
|
226
|
+
readonly naiveCi: import("@elaraai/east").OptionType<StructType<{
|
|
227
|
+
readonly lower: FloatType;
|
|
228
|
+
readonly upper: FloatType;
|
|
229
|
+
}>>;
|
|
230
|
+
readonly nTotal: IntegerType;
|
|
231
|
+
readonly nTreated: IntegerType;
|
|
232
|
+
readonly nControl: IntegerType;
|
|
233
|
+
readonly nDropped: IntegerType;
|
|
234
|
+
readonly balance: ArrayType<StructType<{
|
|
235
|
+
readonly column: StringType;
|
|
236
|
+
readonly treatedMean: FloatType;
|
|
237
|
+
readonly controlMean: FloatType;
|
|
238
|
+
readonly stdDiff: FloatType;
|
|
239
|
+
}>>;
|
|
240
|
+
}>>;
|
|
241
|
+
export declare const refuteFn: import("@elaraai/e3").FunctionDef<[ArrayType<StructType<{
|
|
242
|
+
readonly slow_cure: BooleanType;
|
|
243
|
+
readonly bond_strength: FloatType;
|
|
244
|
+
readonly incoming_grade: FloatType;
|
|
245
|
+
readonly mix_viscosity: FloatType;
|
|
246
|
+
readonly supplier: IntegerType;
|
|
247
|
+
readonly line: StringType;
|
|
248
|
+
readonly product: StringType;
|
|
249
|
+
readonly run_date: DateTimeType;
|
|
250
|
+
}>>, StructType<{
|
|
251
|
+
readonly treatment: StringType;
|
|
252
|
+
readonly outcome: StringType;
|
|
253
|
+
readonly confounders: ArrayType<StringType>;
|
|
254
|
+
readonly categorical: ArrayType<StringType>;
|
|
255
|
+
readonly population: import("@elaraai/east").OptionType<ArrayType<import("@elaraai/east").VariantType<{
|
|
256
|
+
readonly string: import("@elaraai/east").StructType<{
|
|
257
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
258
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
259
|
+
readonly eq: import("@elaraai/east").StringType;
|
|
260
|
+
readonly neq: import("@elaraai/east").StringType;
|
|
261
|
+
readonly in: import("@elaraai/east").SetType<import("@elaraai/east").StringType>;
|
|
262
|
+
readonly notIn: import("@elaraai/east").SetType<import("@elaraai/east").StringType>;
|
|
263
|
+
readonly contains: import("@elaraai/east").StringType;
|
|
264
|
+
readonly matches: import("@elaraai/east").StringType;
|
|
265
|
+
}>;
|
|
266
|
+
}>;
|
|
267
|
+
readonly integer: import("@elaraai/east").StructType<{
|
|
268
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
269
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
270
|
+
readonly eq: import("@elaraai/east").IntegerType;
|
|
271
|
+
readonly neq: import("@elaraai/east").IntegerType;
|
|
272
|
+
readonly lt: import("@elaraai/east").IntegerType;
|
|
273
|
+
readonly lte: import("@elaraai/east").IntegerType;
|
|
274
|
+
readonly gt: import("@elaraai/east").IntegerType;
|
|
275
|
+
readonly gte: import("@elaraai/east").IntegerType;
|
|
276
|
+
readonly in: import("@elaraai/east").SetType<import("@elaraai/east").IntegerType>;
|
|
277
|
+
}>;
|
|
278
|
+
}>;
|
|
279
|
+
readonly float: import("@elaraai/east").StructType<{
|
|
280
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
281
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
282
|
+
readonly lt: import("@elaraai/east").FloatType;
|
|
283
|
+
readonly lte: import("@elaraai/east").FloatType;
|
|
284
|
+
readonly gt: import("@elaraai/east").FloatType;
|
|
285
|
+
readonly gte: import("@elaraai/east").FloatType;
|
|
286
|
+
}>;
|
|
287
|
+
}>;
|
|
288
|
+
readonly datetime: import("@elaraai/east").StructType<{
|
|
289
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
290
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
291
|
+
readonly before: import("@elaraai/east").DateTimeType;
|
|
292
|
+
readonly after: import("@elaraai/east").DateTimeType;
|
|
293
|
+
readonly between: import("@elaraai/east").StructType<{
|
|
294
|
+
readonly from: import("@elaraai/east").DateTimeType;
|
|
295
|
+
readonly to: import("@elaraai/east").DateTimeType;
|
|
296
|
+
}>;
|
|
297
|
+
}>;
|
|
298
|
+
}>;
|
|
299
|
+
readonly boolean: import("@elaraai/east").StructType<{
|
|
300
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
301
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
302
|
+
readonly is: import("@elaraai/east").BooleanType;
|
|
303
|
+
}>;
|
|
304
|
+
}>;
|
|
305
|
+
}>>>;
|
|
306
|
+
readonly method: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
307
|
+
readonly linear_regression: import("@elaraai/east").NullType;
|
|
308
|
+
readonly propensity_score_weighting: StructType<{
|
|
309
|
+
readonly weighting_scheme: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
310
|
+
readonly ips_weight: import("@elaraai/east").NullType;
|
|
311
|
+
readonly ips_stabilized_weight: import("@elaraai/east").NullType;
|
|
312
|
+
readonly ips_normalized_weight: import("@elaraai/east").NullType;
|
|
313
|
+
}>>;
|
|
314
|
+
}>;
|
|
315
|
+
}>>;
|
|
316
|
+
readonly targetUnits: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
317
|
+
readonly ate: import("@elaraai/east").NullType;
|
|
318
|
+
readonly att: import("@elaraai/east").NullType;
|
|
319
|
+
readonly atc: import("@elaraai/east").NullType;
|
|
320
|
+
}>>;
|
|
321
|
+
readonly trim: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
322
|
+
readonly overlap: import("@elaraai/east").NullType;
|
|
323
|
+
readonly bounds: StructType<{
|
|
324
|
+
readonly lower: FloatType;
|
|
325
|
+
readonly upper: FloatType;
|
|
326
|
+
}>;
|
|
327
|
+
}>>;
|
|
328
|
+
}>], StructType<{
|
|
329
|
+
readonly checks: ArrayType<StructType<{
|
|
330
|
+
readonly kind: import("@elaraai/east").VariantType<{
|
|
331
|
+
readonly placebo: import("@elaraai/east").NullType;
|
|
332
|
+
readonly random_common_cause: import("@elaraai/east").NullType;
|
|
333
|
+
readonly data_subset: import("@elaraai/east").NullType;
|
|
334
|
+
readonly unobserved: import("@elaraai/east").NullType;
|
|
335
|
+
}>;
|
|
336
|
+
readonly estimatedEffect: FloatType;
|
|
337
|
+
readonly newEffects: import("@elaraai/east").VectorType<FloatType>;
|
|
338
|
+
readonly strengths: import("@elaraai/east").OptionType<import("@elaraai/east").VectorType<FloatType>>;
|
|
339
|
+
readonly pValue: import("@elaraai/east").OptionType<FloatType>;
|
|
340
|
+
}>>;
|
|
341
|
+
}>>;
|
|
342
|
+
export declare const doseFn: import("@elaraai/e3").FunctionDef<[ArrayType<StructType<{
|
|
343
|
+
readonly slow_cure: BooleanType;
|
|
344
|
+
readonly bond_strength: FloatType;
|
|
345
|
+
readonly incoming_grade: FloatType;
|
|
346
|
+
readonly mix_viscosity: FloatType;
|
|
347
|
+
readonly supplier: IntegerType;
|
|
348
|
+
readonly line: StringType;
|
|
349
|
+
readonly product: StringType;
|
|
350
|
+
readonly run_date: DateTimeType;
|
|
351
|
+
}>>, StructType<{
|
|
352
|
+
readonly treatment: StringType;
|
|
353
|
+
readonly outcome: StringType;
|
|
354
|
+
readonly confounders: ArrayType<StringType>;
|
|
355
|
+
readonly categorical: ArrayType<StringType>;
|
|
356
|
+
readonly population: import("@elaraai/east").OptionType<ArrayType<import("@elaraai/east").VariantType<{
|
|
357
|
+
readonly string: import("@elaraai/east").StructType<{
|
|
358
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
359
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
360
|
+
readonly eq: import("@elaraai/east").StringType;
|
|
361
|
+
readonly neq: import("@elaraai/east").StringType;
|
|
362
|
+
readonly in: import("@elaraai/east").SetType<import("@elaraai/east").StringType>;
|
|
363
|
+
readonly notIn: import("@elaraai/east").SetType<import("@elaraai/east").StringType>;
|
|
364
|
+
readonly contains: import("@elaraai/east").StringType;
|
|
365
|
+
readonly matches: import("@elaraai/east").StringType;
|
|
366
|
+
}>;
|
|
367
|
+
}>;
|
|
368
|
+
readonly integer: import("@elaraai/east").StructType<{
|
|
369
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
370
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
371
|
+
readonly eq: import("@elaraai/east").IntegerType;
|
|
372
|
+
readonly neq: import("@elaraai/east").IntegerType;
|
|
373
|
+
readonly lt: import("@elaraai/east").IntegerType;
|
|
374
|
+
readonly lte: import("@elaraai/east").IntegerType;
|
|
375
|
+
readonly gt: import("@elaraai/east").IntegerType;
|
|
376
|
+
readonly gte: import("@elaraai/east").IntegerType;
|
|
377
|
+
readonly in: import("@elaraai/east").SetType<import("@elaraai/east").IntegerType>;
|
|
378
|
+
}>;
|
|
379
|
+
}>;
|
|
380
|
+
readonly float: import("@elaraai/east").StructType<{
|
|
381
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
382
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
383
|
+
readonly lt: import("@elaraai/east").FloatType;
|
|
384
|
+
readonly lte: import("@elaraai/east").FloatType;
|
|
385
|
+
readonly gt: import("@elaraai/east").FloatType;
|
|
386
|
+
readonly gte: import("@elaraai/east").FloatType;
|
|
387
|
+
}>;
|
|
388
|
+
}>;
|
|
389
|
+
readonly datetime: import("@elaraai/east").StructType<{
|
|
390
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
391
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
392
|
+
readonly before: import("@elaraai/east").DateTimeType;
|
|
393
|
+
readonly after: import("@elaraai/east").DateTimeType;
|
|
394
|
+
readonly between: import("@elaraai/east").StructType<{
|
|
395
|
+
readonly from: import("@elaraai/east").DateTimeType;
|
|
396
|
+
readonly to: import("@elaraai/east").DateTimeType;
|
|
397
|
+
}>;
|
|
398
|
+
}>;
|
|
399
|
+
}>;
|
|
400
|
+
readonly boolean: import("@elaraai/east").StructType<{
|
|
401
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
402
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
403
|
+
readonly is: import("@elaraai/east").BooleanType;
|
|
404
|
+
}>;
|
|
405
|
+
}>;
|
|
406
|
+
}>>>;
|
|
407
|
+
readonly method: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
408
|
+
readonly linear_regression: import("@elaraai/east").NullType;
|
|
409
|
+
readonly propensity_score_weighting: StructType<{
|
|
410
|
+
readonly weighting_scheme: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
411
|
+
readonly ips_weight: import("@elaraai/east").NullType;
|
|
412
|
+
readonly ips_stabilized_weight: import("@elaraai/east").NullType;
|
|
413
|
+
readonly ips_normalized_weight: import("@elaraai/east").NullType;
|
|
414
|
+
}>>;
|
|
415
|
+
}>;
|
|
416
|
+
}>>;
|
|
417
|
+
readonly targetUnits: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
418
|
+
readonly ate: import("@elaraai/east").NullType;
|
|
419
|
+
readonly att: import("@elaraai/east").NullType;
|
|
420
|
+
readonly atc: import("@elaraai/east").NullType;
|
|
421
|
+
}>>;
|
|
422
|
+
readonly trim: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
423
|
+
readonly overlap: import("@elaraai/east").NullType;
|
|
424
|
+
readonly bounds: StructType<{
|
|
425
|
+
readonly lower: FloatType;
|
|
426
|
+
readonly upper: FloatType;
|
|
427
|
+
}>;
|
|
428
|
+
}>>;
|
|
429
|
+
}>, StringType], StructType<{
|
|
430
|
+
readonly feature: StringType;
|
|
431
|
+
readonly grid: import("@elaraai/east").VectorType<FloatType>;
|
|
432
|
+
readonly effect: import("@elaraai/east").VectorType<FloatType>;
|
|
433
|
+
readonly lower: import("@elaraai/east").OptionType<import("@elaraai/east").VectorType<FloatType>>;
|
|
434
|
+
readonly upper: import("@elaraai/east").OptionType<import("@elaraai/east").VectorType<FloatType>>;
|
|
435
|
+
readonly size: import("@elaraai/east").VectorType<IntegerType>;
|
|
436
|
+
readonly segments: import("@elaraai/east").OptionType<ArrayType<StructType<{
|
|
437
|
+
readonly label: StringType;
|
|
438
|
+
readonly grid: import("@elaraai/east").VectorType<FloatType>;
|
|
439
|
+
readonly effect: import("@elaraai/east").VectorType<FloatType>;
|
|
440
|
+
readonly lower: import("@elaraai/east").OptionType<import("@elaraai/east").VectorType<FloatType>>;
|
|
441
|
+
readonly upper: import("@elaraai/east").OptionType<import("@elaraai/east").VectorType<FloatType>>;
|
|
442
|
+
}>>>;
|
|
443
|
+
}>>;
|
|
444
|
+
export declare const experimentJournalInput: import("@elaraai/e3").DatasetDef<ArrayType<StructType<{
|
|
445
|
+
readonly spec: StructType<{
|
|
446
|
+
readonly treatment: StringType;
|
|
447
|
+
readonly outcome: StringType;
|
|
448
|
+
readonly confounders: ArrayType<StringType>;
|
|
449
|
+
readonly categorical: ArrayType<StringType>;
|
|
450
|
+
readonly population: import("@elaraai/east").OptionType<ArrayType<import("@elaraai/east").VariantType<{
|
|
451
|
+
readonly string: import("@elaraai/east").StructType<{
|
|
452
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
453
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
454
|
+
readonly eq: import("@elaraai/east").StringType;
|
|
455
|
+
readonly neq: import("@elaraai/east").StringType;
|
|
456
|
+
readonly in: import("@elaraai/east").SetType<import("@elaraai/east").StringType>;
|
|
457
|
+
readonly notIn: import("@elaraai/east").SetType<import("@elaraai/east").StringType>;
|
|
458
|
+
readonly contains: import("@elaraai/east").StringType;
|
|
459
|
+
readonly matches: import("@elaraai/east").StringType;
|
|
460
|
+
}>;
|
|
461
|
+
}>;
|
|
462
|
+
readonly integer: import("@elaraai/east").StructType<{
|
|
463
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
464
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
465
|
+
readonly eq: import("@elaraai/east").IntegerType;
|
|
466
|
+
readonly neq: import("@elaraai/east").IntegerType;
|
|
467
|
+
readonly lt: import("@elaraai/east").IntegerType;
|
|
468
|
+
readonly lte: import("@elaraai/east").IntegerType;
|
|
469
|
+
readonly gt: import("@elaraai/east").IntegerType;
|
|
470
|
+
readonly gte: import("@elaraai/east").IntegerType;
|
|
471
|
+
readonly in: import("@elaraai/east").SetType<import("@elaraai/east").IntegerType>;
|
|
472
|
+
}>;
|
|
473
|
+
}>;
|
|
474
|
+
readonly float: import("@elaraai/east").StructType<{
|
|
475
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
476
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
477
|
+
readonly lt: import("@elaraai/east").FloatType;
|
|
478
|
+
readonly lte: import("@elaraai/east").FloatType;
|
|
479
|
+
readonly gt: import("@elaraai/east").FloatType;
|
|
480
|
+
readonly gte: import("@elaraai/east").FloatType;
|
|
481
|
+
}>;
|
|
482
|
+
}>;
|
|
483
|
+
readonly datetime: import("@elaraai/east").StructType<{
|
|
484
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
485
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
486
|
+
readonly before: import("@elaraai/east").DateTimeType;
|
|
487
|
+
readonly after: import("@elaraai/east").DateTimeType;
|
|
488
|
+
readonly between: import("@elaraai/east").StructType<{
|
|
489
|
+
readonly from: import("@elaraai/east").DateTimeType;
|
|
490
|
+
readonly to: import("@elaraai/east").DateTimeType;
|
|
491
|
+
}>;
|
|
492
|
+
}>;
|
|
493
|
+
}>;
|
|
494
|
+
readonly boolean: import("@elaraai/east").StructType<{
|
|
495
|
+
readonly fieldId: import("@elaraai/east").StringType;
|
|
496
|
+
readonly op: import("@elaraai/east").VariantType<{
|
|
497
|
+
readonly is: import("@elaraai/east").BooleanType;
|
|
498
|
+
}>;
|
|
499
|
+
}>;
|
|
500
|
+
}>>>;
|
|
501
|
+
readonly method: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
502
|
+
readonly linear_regression: import("@elaraai/east").NullType;
|
|
503
|
+
readonly propensity_score_weighting: StructType<{
|
|
504
|
+
readonly weighting_scheme: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
505
|
+
readonly ips_weight: import("@elaraai/east").NullType;
|
|
506
|
+
readonly ips_stabilized_weight: import("@elaraai/east").NullType;
|
|
507
|
+
readonly ips_normalized_weight: import("@elaraai/east").NullType;
|
|
508
|
+
}>>;
|
|
509
|
+
}>;
|
|
510
|
+
}>>;
|
|
511
|
+
readonly targetUnits: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
512
|
+
readonly ate: import("@elaraai/east").NullType;
|
|
513
|
+
readonly att: import("@elaraai/east").NullType;
|
|
514
|
+
readonly atc: import("@elaraai/east").NullType;
|
|
515
|
+
}>>;
|
|
516
|
+
readonly trim: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
517
|
+
readonly overlap: import("@elaraai/east").NullType;
|
|
518
|
+
readonly bounds: StructType<{
|
|
519
|
+
readonly lower: FloatType;
|
|
520
|
+
readonly upper: FloatType;
|
|
521
|
+
}>;
|
|
522
|
+
}>>;
|
|
523
|
+
}>;
|
|
524
|
+
readonly effect: FloatType;
|
|
525
|
+
readonly ci: import("@elaraai/east").OptionType<StructType<{
|
|
526
|
+
readonly lower: FloatType;
|
|
527
|
+
readonly upper: FloatType;
|
|
528
|
+
}>>;
|
|
529
|
+
readonly committedAt: DateTimeType;
|
|
530
|
+
readonly committedBy: StringType;
|
|
531
|
+
}>>, [variant<"field", "inputs">, variant<"field", "experiment_journal">]>;
|
|
532
|
+
export declare const experimentSurface: import("@elaraai/east").ExampleDef<[], any>;
|
|
533
|
+
export declare const experimentTrust: import("@elaraai/east").ExampleDef<[], any>;
|
|
534
|
+
export declare const experimentDose: import("@elaraai/east").ExampleDef<[], any>;
|
|
535
|
+
//# sourceMappingURL=experiment.examples.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experiment.examples.d.ts","sourceRoot":"","sources":["../../../test/experiment/experiment.examples.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,sCAAsC;AAEtC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EACG,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAC9E,OAAO,EACtB,MAAM,eAAe,CAAC;AAUvB,0EAA0E;AAC1E,eAAO,MAAM,QAAQ;;;;;;;;;EASnB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;+DAavB,CAAC;AAMH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sEAY9B,CAAC;AAOH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYnB,CAAC;AAEL,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQjB,CAAC;AAEL,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GASf,CAAC;AAOL,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAajC,CAAC;AAMH,eAAO,MAAM,iBAAiB,6CAkB5B,CAAC;AAEH,eAAO,MAAM,eAAe,6CAkB1B,CAAC;AAEH,eAAO,MAAM,cAAc,6CAkBzB,CAAC"}
|