namespace OrpaonVision.Core.Training.Contracts;
///
/// 模型包详情。
///
public sealed class ModelPackageDetailDto
{
///
/// 模型包ID。
///
public Guid ModelPackageId { get; init; }
///
/// 模型包名称。
///
public string Name { get; init; } = string.Empty;
///
/// 模型包版本号。
///
public string VersionNo { get; init; } = string.Empty;
///
/// 模型包描述。
///
public string Description { get; init; } = string.Empty;
///
/// 模型版本ID。
///
public Guid ModelVersionId { get; init; }
///
/// 模型版本号。
///
public string ModelVersionNo { get; init; } = string.Empty;
///
/// 机种ID。
///
public Guid ProductTypeId { get; init; }
///
/// 机种编码。
///
public string ProductTypeCode { get; init; } = string.Empty;
///
/// 训练任务ID。
///
public Guid TrainingJobId { get; init; }
///
/// 训练算法类型。
///
public string AlgorithmType { get; init; } = string.Empty;
///
/// 模型文件路径。
///
public string ModelFilePath { get; init; } = string.Empty;
///
/// 标签映射文件路径。
///
public string LabelMappingPath { get; init; } = string.Empty;
///
/// 配置文件路径。
///
public string ConfigPath { get; init; } = string.Empty;
///
/// 模型包大小(字节)。
///
public long PackageSizeBytes { get; init; }
///
/// 模型准确率。
///
public decimal Accuracy { get; init; }
///
/// 模型召回率。
///
public decimal Recall { get; init; }
///
/// 模型F1分数。
///
public decimal F1Score { get; init; }
///
/// 验证集损失。
///
public decimal ValidationLoss { get; init; }
///
/// 模型包状态。
///
public string Status { get; init; } = string.Empty;
///
/// 是否已激活。
///
public bool IsActive { get; init; }
///
/// 创建时间(UTC)。
///
public DateTime CreatedAtUtc { get; init; }
///
/// 创建者。
///
public string CreatedBy { get; init; } = string.Empty;
///
/// 激活时间(UTC)。
///
public DateTime? ActivatedAtUtc { get; init; }
///
/// 激活者。
///
public string ActivatedBy { get; init; } = string.Empty;
///
/// 校验和。
///
public string Checksum { get; init; } = string.Empty;
///
/// 兼容性版本。
///
public string CompatibilityVersion { get; init; } = string.Empty;
///
/// 依赖项列表(JSON)。
///
public string DependenciesJson { get; init; } = string.Empty;
}