One Logo Pool Ball
CreateMLComponents · IOS API REFERENCE

MetricsKey

struct · iOS 16.0+ · SDK 27.1

struct MetricsKey

A key that uniquely identifies a metric.

Members (15)

get · iOS 16.0+

trainingLoss

TypeScript
get trainingLoss(): MetricsKey
Swift declaration
static let trainingLoss: MetricsKey

A key associated with a training loss metric.

get · iOS 16.0+

trainingError

TypeScript
get trainingError(): MetricsKey
Swift declaration
static let trainingError: MetricsKey

A key associated with a training error metric.

get · iOS 16.0+

validationLoss

TypeScript
get validationLoss(): MetricsKey
Swift declaration
static let validationLoss: MetricsKey

A key associated with a validation loss metric.

get · iOS 16.0+

validationError

TypeScript
get validationError(): MetricsKey
Swift declaration
static let validationError: MetricsKey

A key associated with a validation error metric.

get · iOS 16.0+

debugDescription

TypeScript
getDebugDescription($self: MetricsKey): string
Swift declaration
var debugDescription: String { get }

A textual representation of this instance, suitable for debugging. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(reflecting:)` initializer. This initializer works with any type, and uses the custom `debugDescription` property for types that conform to `CustomDebugStringConvertible`: struct Point: CustomDebugStringConvertible { let x: Int, y: Int var debugDescription: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(reflecting: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `debugDescription` property.

get · iOS 16.0+

trainingAccuracy

TypeScript
get trainingAccuracy(): MetricsKey
Swift declaration
static let trainingAccuracy: MetricsKey

A key associated with a training accuracy metric.

get · iOS 16.0+

validationAccuracy

TypeScript
get validationAccuracy(): MetricsKey
Swift declaration
static let validationAccuracy: MetricsKey

A key associated with a validation accuracy metric.

get · iOS 16.0+

trainingMaximumError

TypeScript
get trainingMaximumError(): MetricsKey
Swift declaration
static let trainingMaximumError: MetricsKey

A key associated with a training maximum error metric.

get · iOS 16.0+

validationMaximumError

TypeScript
get validationMaximumError(): MetricsKey
Swift declaration
static let validationMaximumError: MetricsKey

A key associated with a validation maximum error metric.

get · iOS 17.0+

trainingMeanAveragePrecision

TypeScript
get trainingMeanAveragePrecision(): MetricsKey
Swift declaration
static let trainingMeanAveragePrecision: MetricsKey

A key associated with a training mean average precision metric.

get · iOS 17.0+

validationMeanAveragePrecision

TypeScript
get validationMeanAveragePrecision(): MetricsKey
Swift declaration
static let validationMeanAveragePrecision: MetricsKey

A key associated with a validation mean average precision metric.

get · iOS 16.0+

source

TypeScript
get source(): MetricsKey
Swift declaration
static let source: MetricsKey

A key associated with a temporal stream source (e.g. a file name).

init · iOS 16.0+

init

TypeScript
init(rawValue: string): MetricsKey
Swift declaration
init(rawValue: String)

Creates a new instance with the specified raw value. If there is no value of the type that corresponds with the specified raw value, this initializer returns `nil`. For example: enum PaperSize: String { case A4, A5, Letter, Legal } print(PaperSize(rawValue: "Legal")) // Prints "Optional(PaperSize.Legal)" print(PaperSize(rawValue: "Tabloid")) // Prints "nil" - Parameter rawValue: The raw value to use for the new instance.

get · iOS 16.0+

rawValue

TypeScript
getRawValue($self: MetricsKey): string
Swift declaration
var rawValue: String

The corresponding value of the raw type. A new instance initialized with `rawValue` will be equivalent to this instance. For example: enum PaperSize: String { case A4, A5, Letter, Legal } let selectedSize = PaperSize.Letter print(selectedSize.rawValue) // Prints "Letter" print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!) // Prints "true"

set · iOS 16.0+

rawValue

TypeScript
setRawValue($self: MetricsKey, value: string): void
Swift declaration
var rawValue: String

The corresponding value of the raw type. A new instance initialized with `rawValue` will be equivalent to this instance. For example: enum PaperSize: String { case A4, A5, Letter, Legal } let selectedSize = PaperSize.Letter print(selectedSize.rawValue) // Prints "Letter" print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!) // Prints "true"

Skipped declarations

No declarations were skipped in this snapshot.

All CreateMLComponents types →