Files
OrpaonVision/OrpaonVision.Core/Training/Contracts/TrainingJobListItemDto.cs
2026-04-06 22:04:05 +08:00

73 lines
1.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace OrpaonVision.Core.Training.Contracts;
/// <summary>
/// 训练任务列表项。
/// </summary>
public sealed class TrainingJobListItemDto
{
/// <summary>
/// 训练任务ID。
/// </summary>
public Guid TrainingJobId { get; init; }
/// <summary>
/// 任务名称。
/// </summary>
public string Name { get; init; } = string.Empty;
/// <summary>
/// 数据集版本号。
/// </summary>
public string DatasetVersionNo { 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 string Status { get; init; } = string.Empty;
/// <summary>
/// 进度百分比0-100
/// </summary>
public decimal ProgressPercentage { get; init; }
/// <summary>
/// 当前轮次。
/// </summary>
public int CurrentEpoch { get; init; }
/// <summary>
/// 总轮次。
/// </summary>
public int TotalEpochs { get; init; }
/// <summary>
/// 当前损失。
/// </summary>
public decimal CurrentLoss { get; init; }
/// <summary>
/// 开始时间UTC
/// </summary>
public DateTime? StartedAtUtc { get; init; }
/// <summary>
/// 创建时间UTC
/// </summary>
public DateTime CreatedAtUtc { get; init; }
/// <summary>
/// 创建者。
/// </summary>
public string CreatedBy { get; init; } = string.Empty;
}