Interface: RewardScoreResponse
@kortexya/reasoninglayer / RewardScoreResponse
Interface: RewardScoreResponse
Section titled “Interface: RewardScoreResponse”Defined in: src/types/reward.ts:49
Response of POST /api/v1/reward/score.
Properties
Section titled “Properties”certifiedNonEmpty
Section titled “certifiedNonEmpty”certifiedNonEmpty:
boolean
Defined in: src/types/reward.ts:55
A sound certificate — recall: provably non-empty (subsumes ≥ 1 populated anchor); precision: provably discriminating (covers ≥ 1 positive, 0 negatives). Never a false positive.
coversNegative?
Section titled “coversNegative?”
optionalcoversNegative?:number|null
Defined in: src/types/reward.ts:57
Precision objective only: negatives (mined near-miss siblings) covered.
coversPositive?
Section titled “coversPositive?”
optionalcoversPositive?:number|null
Defined in: src/types/reward.ts:59
Precision objective only: positives covered.
estimatedExtent
Section titled “estimatedExtent”estimatedExtent:
number
Defined in: src/types/reward.ts:61
Recall: a sound lower bound on the query’s extent. Precision: positives covered.
precision?
Section titled “precision?”
optionalprecision?:number|null
Defined in: src/types/reward.ts:63
Precision objective only: fraction of covered instances that are positives.
recall?
Section titled “recall?”
optionalrecall?:number|null
Defined in: src/types/reward.ts:65
Precision objective only: fraction of the concept’s positives covered.
reward
Section titled “reward”reward:
number
Defined in: src/types/reward.ts:70
Recall: ln(estimatedExtent + 1). Precision: the F1 of
discriminating the concept. A bounded RL reward signal in both cases.