<!--
{
  "availability" : [
    "Xcode: 27.0.0 -",
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Evaluations",
  "identifier" : "/documentation/Evaluations/ModelJudgeEvaluator/init(_:scale:judge:scoringMode:prompt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Evaluations"
    ],
    "preciseIdentifier" : "s:11Evaluations19ModelJudgeEvaluatorV_5scale5judge11scoringMode6promptACyxGSS_AA12ScoringScaleV16FoundationModels08LanguageB0_pAA0jH0OAA0bC6PromptVyxGtcfc"
  },
  "title" : "init(_:scale:judge:scoringMode:prompt:)"
}
-->

# init(_:scale:judge:scoringMode:prompt:)

Creates a single-metric evaluator with a custom judge prompt.

```
init(_ name: String, scale: ScoringScale, judge: any LanguageModel, scoringMode: ScoringMode = .discrete, prompt: ModelJudgePrompt<Input>)
```

## Parameters

`name`

The metric name that corresponds to the DataFrame column.

`scale`

The scoring scale for this metric.

`judge`

The language model to use as judge.

`scoringMode`

A value that indicates whether scores are discrete (default) or allow any floating-point value.

`prompt`

Configuration for the judge prompt, including instructions, response presentation, and reference.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)