Skip to content

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 ​

PropertyTypeDescriptionDefined in
contributionnumberSigned pseudo-counts this signal currently holds: positive in α, negative in β, after decay.types.ts:296
effectiveWeightnumberThe 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
hitsnumber-types.ts:308
impactnumberp minus what p would be without this signal's contribution.types.ts:298
initialWeightnumberThe developer's weight.types.ts:300
learnedWeightnumberWhat this user's history alone says the weight should be.types.ts:302
missesnumber-types.ts:309
signalstring-types.ts:294

Released under the MIT License.