版本260406
This commit is contained in:
142
OrpaonVision.Core/Training/Contracts/ModelPackageDetailDto.cs
Normal file
142
OrpaonVision.Core/Training/Contracts/ModelPackageDetailDto.cs
Normal file
@@ -0,0 +1,142 @@
|
||||
namespace OrpaonVision.Core.Training.Contracts;
|
||||
|
||||
/// <summary>
|
||||
/// 模型包详情。
|
||||
/// </summary>
|
||||
public sealed class ModelPackageDetailDto
|
||||
{
|
||||
/// <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>
|
||||
/// 模型版本ID。
|
||||
/// </summary>
|
||||
public Guid ModelVersionId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 模型版本号。
|
||||
/// </summary>
|
||||
public string ModelVersionNo { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 机种ID。
|
||||
/// </summary>
|
||||
public Guid ProductTypeId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 机种编码。
|
||||
/// </summary>
|
||||
public string ProductTypeCode { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 训练任务ID。
|
||||
/// </summary>
|
||||
public Guid TrainingJobId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 训练算法类型。
|
||||
/// </summary>
|
||||
public string AlgorithmType { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 模型文件路径。
|
||||
/// </summary>
|
||||
public string ModelFilePath { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 标签映射文件路径。
|
||||
/// </summary>
|
||||
public string LabelMappingPath { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 配置文件路径。
|
||||
/// </summary>
|
||||
public string ConfigPath { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 模型包大小(字节)。
|
||||
/// </summary>
|
||||
public long PackageSizeBytes { get; init; }
|
||||
|
||||
/// <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 decimal ValidationLoss { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 模型包状态。
|
||||
/// </summary>
|
||||
public string Status { get; init; } = string.Empty;
|
||||
|
||||
/// <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 string Checksum { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 兼容性版本。
|
||||
/// </summary>
|
||||
public string CompatibilityVersion { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 依赖项列表(JSON)。
|
||||
/// </summary>
|
||||
public string DependenciesJson { get; init; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user