trainingLoss
TypeScriptget trainingLoss(): MetricsKeySwift declarationstatic let trainingLoss: MetricsKeyA key associated with a training loss metric.
struct · iOS 16.0+ · SDK 27.1
struct MetricsKeyA key that uniquely identifies a metric.
get trainingLoss(): MetricsKeySwift declarationstatic let trainingLoss: MetricsKeyA key associated with a training loss metric.
get trainingError(): MetricsKeySwift declarationstatic let trainingError: MetricsKeyA key associated with a training error metric.
get validationLoss(): MetricsKeySwift declarationstatic let validationLoss: MetricsKeyA key associated with a validation loss metric.
get validationError(): MetricsKeySwift declarationstatic let validationError: MetricsKeyA key associated with a validation error metric.
getDebugDescription($self: MetricsKey): stringSwift declarationvar 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 trainingAccuracy(): MetricsKeySwift declarationstatic let trainingAccuracy: MetricsKeyA key associated with a training accuracy metric.
get validationAccuracy(): MetricsKeySwift declarationstatic let validationAccuracy: MetricsKeyA key associated with a validation accuracy metric.
get trainingMaximumError(): MetricsKeySwift declarationstatic let trainingMaximumError: MetricsKeyA key associated with a training maximum error metric.
get validationMaximumError(): MetricsKeySwift declarationstatic let validationMaximumError: MetricsKeyA key associated with a validation maximum error metric.
get trainingMeanAveragePrecision(): MetricsKeySwift declarationstatic let trainingMeanAveragePrecision: MetricsKeyA key associated with a training mean average precision metric.
get validationMeanAveragePrecision(): MetricsKeySwift declarationstatic let validationMeanAveragePrecision: MetricsKeyA key associated with a validation mean average precision metric.
get source(): MetricsKeySwift declarationstatic let source: MetricsKeyA key associated with a temporal stream source (e.g. a file name).
init(rawValue: string): MetricsKeySwift declarationinit(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.
getRawValue($self: MetricsKey): stringSwift declarationvar rawValue: StringThe 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"
setRawValue($self: MetricsKey, value: string): voidSwift declarationvar rawValue: StringThe 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"
No declarations were skipped in this snapshot.