oracular / SignalExplanation
Interface: SignalExplanation
Defined in: types.ts:293
One row of explain: what a single signal is doing to an intent right now, and what has been learned about it.
Example
ts
const [strongest] = explain(state, 'upgrade', now);
strongest?.signal; // the signal with the largest |impact|Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
contribution | number | Signed pseudo-counts this signal currently holds: positive in α, negative in β, after decay. | types.ts:296 |
effectiveWeight | number | The blend of initial and learned weight: what the signal adds the first time it occurs in an episode. Repeats within the episode add less (see IntentConfig.saturate). | types.ts:307 |
hits | number | - | types.ts:308 |
impact | number | p minus what p would be without this signal's contribution. | types.ts:298 |
initialWeight | number | The developer's weight. | types.ts:300 |
learnedWeight | number | What this user's history alone says the weight should be. | types.ts:302 |
misses | number | - | types.ts:309 |
signal | string | - | types.ts:294 |