Interface: ForecastRequest
@kortexya/reasoninglayer / ForecastRequest
Interface: ForecastRequest
Section titled “Interface: ForecastRequest”Defined in: src/types/forecast.ts:53
Request for a certified forecast over a registered prediction domain.
Remarks
Section titled “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
Section titled “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
Section titled “Properties”attachIntervals?
Section titled “attachIntervals?”
optionalattachIntervals?:boolean|null
Defined in: src/types/forecast.ts:70
Cross-section: attach conformal intervals.
Default Value
Section titled “Default Value”trueentities
Section titled “entities”entities:
ForecastEntityInput[]
Defined in: src/types/forecast.ts:55
Entities to rank (competitors or instruments).
optionalodds?: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.
optionaltopN?:number|null
Defined in: src/types/forecast.ts:64
Grouped-rank: ordered combinations to return.
Default Value
Section titled “Default Value”5