# Function calculateWinLoss

Learning exports - Closed-loop feedback and routing improvement Split from index.ts for file size compliance (Issue #285)

- calculateWinLoss(
  model: string,
  decisions: readonly {
  chosenModel: string;
  actualReward: number;
  rewards: Record<string, number>;
  }[],
  options?: StatisticalOptions,
  ): WinLossAnalysis

  Calculate win/loss analysis for a model.

  #### Parameters

  - model: string
  - decisions: readonly {
    chosenModel: string;
    actualReward: number;
    rewards: Record<string, number>;
    }[]
  - options: StatisticalOptions = {}

  #### Returns WinLossAnalysis

  - Defined in packages/nexus-agents/src/learning/validation-stats.ts:274