93 lines
2.1 KiB
C#
93 lines
2.1 KiB
C#
namespace OrpaonVision.Core.Training.Contracts;
|
||
|
||
/// <summary>
|
||
/// 模型包摘要。
|
||
/// </summary>
|
||
public sealed class ModelPackageSummaryDto
|
||
{
|
||
/// <summary>
|
||
/// 模型包ID。
|
||
/// </summary>
|
||
public Guid ModelPackageId { get; init; }
|
||
|
||
/// <summary>
|
||
/// 模型包名称。
|
||
/// </summary>
|
||
public string Name { get; init; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 模型包版本号。
|
||
/// </summary>
|
||
public string VersionNo { get; init; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 模型包描述。
|
||
/// </summary>
|
||
public string Description { get; init; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 机种编码。
|
||
/// </summary>
|
||
public string ProductTypeCode { get; init; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 训练算法类型。
|
||
/// </summary>
|
||
public string AlgorithmType { get; init; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 模型准确率。
|
||
/// </summary>
|
||
public decimal Accuracy { get; init; }
|
||
|
||
/// <summary>
|
||
/// 模型召回率。
|
||
/// </summary>
|
||
public decimal Recall { get; init; }
|
||
|
||
/// <summary>
|
||
/// 模型F1分数。
|
||
/// </summary>
|
||
public decimal F1Score { get; init; }
|
||
|
||
/// <summary>
|
||
/// 模型包状态。
|
||
/// </summary>
|
||
public ModelPackageImportStatus Status { get; init; }
|
||
|
||
/// <summary>
|
||
/// 是否已激活。
|
||
/// </summary>
|
||
public bool IsActive { get; init; }
|
||
|
||
/// <summary>
|
||
/// 创建时间(UTC)。
|
||
/// </summary>
|
||
public DateTime CreatedAtUtc { get; init; }
|
||
|
||
/// <summary>
|
||
/// 创建者。
|
||
/// </summary>
|
||
public string CreatedBy { get; init; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 激活时间(UTC)。
|
||
/// </summary>
|
||
public DateTime? ActivatedAtUtc { get; init; }
|
||
|
||
/// <summary>
|
||
/// 激活者。
|
||
/// </summary>
|
||
public string ActivatedBy { get; init; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 模型包大小(字节)。
|
||
/// </summary>
|
||
public long PackageSizeBytes { get; init; }
|
||
|
||
/// <summary>
|
||
/// 兼容性版本。
|
||
/// </summary>
|
||
public string CompatibilityVersion { get; init; } = string.Empty;
|
||
}
|