123 lines
2.8 KiB
C#
123 lines
2.8 KiB
C#
namespace OrpaonVision.Core.Training.Contracts;
|
||
|
||
/// <summary>
|
||
/// 训练任务详情。
|
||
/// </summary>
|
||
public sealed class TrainingJobDetailDto
|
||
{
|
||
/// <summary>
|
||
/// 训练任务ID。
|
||
/// </summary>
|
||
public Guid TrainingJobId { get; init; }
|
||
|
||
/// <summary>
|
||
/// 任务名称。
|
||
/// </summary>
|
||
public string Name { get; init; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 任务描述。
|
||
/// </summary>
|
||
public string Description { get; init; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 数据集版本ID。
|
||
/// </summary>
|
||
public Guid DatasetVersionId { get; init; }
|
||
|
||
/// <summary>
|
||
/// 数据集版本号。
|
||
/// </summary>
|
||
public string DatasetVersionNo { get; init; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 机种ID。
|
||
/// </summary>
|
||
public Guid ProductTypeId { get; init; }
|
||
|
||
/// <summary>
|
||
/// 机种编码。
|
||
/// </summary>
|
||
public string ProductTypeCode { get; init; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 训练算法类型。
|
||
/// </summary>
|
||
public string AlgorithmType { get; init; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 训练参数(JSON)。
|
||
/// </summary>
|
||
public string TrainingParametersJson { 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>
|
||
/// 最佳损失。
|
||
/// </summary>
|
||
public decimal BestLoss { get; init; }
|
||
|
||
/// <summary>
|
||
/// 预计剩余时间(秒)。
|
||
/// </summary>
|
||
public long EstimatedRemainingSeconds { get; init; }
|
||
|
||
/// <summary>
|
||
/// 开始时间(UTC)。
|
||
/// </summary>
|
||
public DateTime? StartedAtUtc { get; init; }
|
||
|
||
/// <summary>
|
||
/// 完成时间(UTC)。
|
||
/// </summary>
|
||
public DateTime? CompletedAtUtc { get; init; }
|
||
|
||
/// <summary>
|
||
/// 创建时间(UTC)。
|
||
/// </summary>
|
||
public DateTime CreatedAtUtc { get; init; }
|
||
|
||
/// <summary>
|
||
/// 创建者。
|
||
/// </summary>
|
||
public string CreatedBy { get; init; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 错误信息。
|
||
/// </summary>
|
||
public string ErrorMessage { get; init; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 输出路径。
|
||
/// </summary>
|
||
public string OutputPath { get; init; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 日志路径。
|
||
/// </summary>
|
||
public string LogPath { get; init; } = string.Empty;
|
||
}
|