INNER CODE UNIT · Python

SavedPrediction

cmu-sei/GHOSTS · experimental/grms/grms/main.py:43

class SavedPrediction(BaseModel):
    id: UUID = Field(default_factory=uuid4)
    created_at: datetime = Field(default_factory=datetime.utcnow)
    historical_date: str | None = Field(None, description="ISO date of historical event for ordering")
    label: str = ""
    prediction_type: str = Field(description="leader, population, combined")
    event: GeopoliticalEvent
    leader_id: UUID | None = None
    leader_name: str | None = None
    country: str | None = None
    llm_model: str | None = Field(None, description="LLM model used to generate this prediction")
    leader_response: LeaderResponse | None = None
    population_response: PopulationResponse | None = None
    cascade_responses: list[LeaderResponse] = Field(default_factory=list)
    known_outcome: KnownOutcome | None = Field(None, description="What actually happened — if set, prediction is scored")
    score: PredictionScore | None = Field(None, description="Accuracy score computed from known_outcome")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…