Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Predictions Harness

Collects probability predictions from AI models for a forecasting contest. Uses extended thinking/reasoning and web search for maximum accuracy.

Models

Model Model ID Thinking Budget Web Search
Claude Opus 4.5 claude-opus-4-5-20251101 up to 60k tokens Up to 20 searches
GPT-5.2 Pro gpt-5.2-pro-2025-12-11 ~4k tokens Enabled

Thinking budget notes:

Claude was using way fewer tokens than its 60k budget in practice, so we reduced OpenAI's limit to match actual usage and improve speed.

Setup

pip install anthropic openai

# Copy and fill in your API keys
cp secrets_example.py secrets.py

Usage

# Run with Claude (parallel)
python predict.py questions.json --model claude --output claude_predictions.csv --workers 5

# Run with OpenAI (parallel)
python predict.py questions.json --model openai --output openai_predictions.csv --workers 20

Options:

  • --model (required): claude or openai
  • --output: Output CSV file (default: predictions.csv)
  • --workers: Number of parallel workers (default: 1)

Questions Format

See questions_example.json. Copy to questions.json and add your questions:

[
  {
    "id": 1,
    "category": "Sports",
    "question": "49ers win the Super Bowl",
    "context": "Optional background info or reference links"
  }
]

Fields:

  • id (required): Question number
  • question (required): The prediction question
  • category (optional): For organization
  • context (optional): Background info passed to the model

Output CSV

Column Description
question_id Question number
category Question category
question The question text
probability Extracted probability (0-1)
justification Model's reasoning summary
model_id Exact model version
model_settings Thinking/reasoning config
input_tokens Prompt tokens
output_tokens Response tokens
thinking_tokens_approx Thinking/reasoning tokens
elapsed_seconds API call duration
timestamp When prediction was made
raw_answer Full model response
thinking Full thinking trace (Claude only)

About

2026 prediction contest AI submissions

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages