<!--
{
  "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:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Evaluations"
    ],
    "preciseIdentifier" : "s:11Evaluations19ModelJudgeEvaluatorV_5scale5judge11scoringModeACyxGSS_AA12ScoringScaleV16FoundationModels08LanguageB0_pAA0iH0Otcfc"
  },
  "title" : "init(_:scale:judge:scoringMode:)"
}
-->

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

Creates a single-metric evaluator with default prompt configuration.

iOS, iPadOS, Mac Catalyst, macOS, visionOS:

```
init(_ name: String, scale: ScoringScale, judge: any LanguageModel = SystemLanguageModel(), scoringMode: ScoringMode = .discrete)
```

watchOS:

```
init(_ name: String, scale: ScoringScale, judge: any LanguageModel, scoringMode: ScoringMode = .discrete)
```

## 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. Defaults to `SystemLanguageModel.default`.

`scoringMode`

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

---

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)