Skip to content

Interface: ForecastRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Forecast / ForecastRequest

Interface: ForecastRequest

Defined in: src/types/forecast.ts:53

Request for a certified forecast over a registered prediction domain.

Remarks

The optional fields are shape-specific: odds and topN apply to grouped-rank domains (racing, tournaments, elections), attachIntervals to cross-section domains (equities, credit, demand). Supplying odds enables the grouped-rank odds blend when the trained model carries one.

Example

const request: ForecastRequest = {
entities: [
{ id: 'runner-1', features: [0.4, 11.2] },
{ id: 'runner-2', features: [0.2, 13.9] },
],
odds: [2.5, 6.0],
topN: 3,
};

Properties

attachIntervals?

optional attachIntervals: boolean | null

Defined in: src/types/forecast.ts:70

Cross-section: attach conformal intervals.

Default Value

true

entities

entities: ForecastEntityInput[]

Defined in: src/types/forecast.ts:55

Entities to rank (competitors or instruments).


odds?

optional odds: number[] | null

Defined in: src/types/forecast.ts:58

Decimal odds aligned to entities; enables the grouped-rank odds blend when the model carries one.


topN?

optional topN: number | null

Defined in: src/types/forecast.ts:64

Grouped-rank: ordered combinations to return.

Default Value

5