
commonMain.aws.sdk.kotlin.services.lookoutvision.model.ModelPerformance.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lookoutvision.model
/**
* Information about the evaluation performance of a trained model.
*/
public class ModelPerformance private constructor(builder: Builder) {
/**
* The overall F1 score metric for the trained model.
*/
public val f1Score: kotlin.Float? = builder.f1Score
/**
* The overall precision metric value for the trained model.
*/
public val precision: kotlin.Float? = builder.precision
/**
* The overall recall metric value for the trained model.
*/
public val recall: kotlin.Float? = builder.recall
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutvision.model.ModelPerformance = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ModelPerformance(")
append("f1Score=$f1Score,")
append("precision=$precision,")
append("recall=$recall")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = f1Score?.hashCode() ?: 0
result = 31 * result + (precision?.hashCode() ?: 0)
result = 31 * result + (recall?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as ModelPerformance
if (f1Score != other.f1Score) return false
if (precision != other.precision) return false
if (recall != other.recall) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutvision.model.ModelPerformance = Builder(this).apply(block).build()
public class Builder {
/**
* The overall F1 score metric for the trained model.
*/
public var f1Score: kotlin.Float? = null
/**
* The overall precision metric value for the trained model.
*/
public var precision: kotlin.Float? = null
/**
* The overall recall metric value for the trained model.
*/
public var recall: kotlin.Float? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutvision.model.ModelPerformance) : this() {
this.f1Score = x.f1Score
this.precision = x.precision
this.recall = x.recall
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutvision.model.ModelPerformance = ModelPerformance(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy