Skip to content

Interface: LogOddsScoreDecompositionDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / LogOddsScoreDecompositionDto

Defined in: src/types/inference.ts:477

The log-odds breakdown of a solution’s score.

totalScore is the sum the ranking used; every other field is one of its parts. version identifies the scoring model, so a stored decomposition stays interpretable after the model changes.

antecedents: LogOddsAntecedentContributionDto[]

Defined in: src/types/inference.ts:501

What each antecedent contributed.


coverageTerm: number

Defined in: src/types/inference.ts:487

The coverage term’s contribution.


coverageWeight: number

Defined in: src/types/inference.ts:489

The weight applied to coverage.


creditedCount: number

Defined in: src/types/inference.ts:491

How many antecedents were credited.


logLikelihoodSum: number

Defined in: src/types/inference.ts:485

The summed log-likelihood over credited antecedents.


logPrior: number

Defined in: src/types/inference.ts:483

The prior, in log space.


nullHitRate: number

Defined in: src/types/inference.ts:495

The null model’s hit rate.


nullLlrRate: number

Defined in: src/types/inference.ts:497

The null model’s log-likelihood-ratio rate.


nullTerm: number

Defined in: src/types/inference.ts:493

The null model’s term.


optional observationCount?: number

Defined in: src/types/inference.ts:499

How many observations backed the estimate, when recorded.


totalScore: number

Defined in: src/types/inference.ts:481

The score the ranking used.


version: number

Defined in: src/types/inference.ts:479

Which scoring model produced this.