Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
The projection these were generated from predated the compute migration, so
they described /v1/visor — which the API serves at zero paths now.

No /v1/visor path survives here.
2026-09-05 18:55:38 -07:00

76 lines
3.1 KiB
Swift

//
// Pairing.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Pairing: Sendable, Codable, ParameterConvertible, Hashable {
/** A is the first model id. */
public var a: String?
/** ACorrect is how many of those common items A got right. */
public var aCorrect: Int64?
/** B is the second model id. */
public var b: String?
/** BCorrect is how many of those common items B got right. */
public var bCorrect: Int64?
/** Benchmark is the catalog id the two arms were compared on. */
public var benchmark: String?
/** McnemarP is the two-sided exact binomial p on the discordant pairs. It is 1 when nothing is discordant, which is \"no evidence of a difference\", not an error. */
public var mcnemarP: Double?
/** NCommon is how many items BOTH arms completed. It is the denominator, and the reason this comparison is valid where a raw accuracy difference is not. */
public var nCommon: Int64?
/** NetAMinusB is the two rescue counts subtracted — A's advantage in items. */
public var netAMinusB: Int64?
/** RescueAOverB is how many items A got right and B got wrong. */
public var rescueAOverB: Int64?
/** RescueBOverA is how many items B got right and A got wrong. */
public var rescueBOverA: Int64?
public init(a: String? = nil, aCorrect: Int64? = nil, b: String? = nil, bCorrect: Int64? = nil, benchmark: String? = nil, mcnemarP: Double? = nil, nCommon: Int64? = nil, netAMinusB: Int64? = nil, rescueAOverB: Int64? = nil, rescueBOverA: Int64? = nil) {
self.a = a
self.aCorrect = aCorrect
self.b = b
self.bCorrect = bCorrect
self.benchmark = benchmark
self.mcnemarP = mcnemarP
self.nCommon = nCommon
self.netAMinusB = netAMinusB
self.rescueAOverB = rescueAOverB
self.rescueBOverA = rescueBOverA
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case a
case aCorrect = "a_correct"
case b
case bCorrect = "b_correct"
case benchmark
case mcnemarP = "mcnemar_p"
case nCommon = "n_common"
case netAMinusB = "net_a_minus_b"
case rescueAOverB = "rescue_a_over_b"
case rescueBOverA = "rescue_b_over_a"
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(a, forKey: .a)
try container.encodeIfPresent(aCorrect, forKey: .aCorrect)
try container.encodeIfPresent(b, forKey: .b)
try container.encodeIfPresent(bCorrect, forKey: .bCorrect)
try container.encodeIfPresent(benchmark, forKey: .benchmark)
try container.encodeIfPresent(mcnemarP, forKey: .mcnemarP)
try container.encodeIfPresent(nCommon, forKey: .nCommon)
try container.encodeIfPresent(netAMinusB, forKey: .netAMinusB)
try container.encodeIfPresent(rescueAOverB, forKey: .rescueAOverB)
try container.encodeIfPresent(rescueBOverA, forKey: .rescueBOverA)
}
}