JavaProjectRepo/训练任务数据.md
2026-03-20 19:00:16 +08:00

2.3 KiB

训练任务回填数据

根据现有的 algorithm_model 数据,生成了对应的 model_train_task 回填 SQL 语句。这些数据代表了系统中已存在的模型训练记录。

映射规则说明

  • Task ID:复用 algorithm_model_id,以保持与模型表的关联(实际场景中可能通过此 ID 关联,或视作一次性导入)。
  • Task Name:自动生成格式 Import_{Algorithm}_{Device}_{Version}
  • Status:统一设为 SUCCESS,因为这些模型已经发布。
  • Dataset Path / Train Params:由于原表无此信息,设为默认占位符。
  • Metrics / Feature Map:直接从原表复制。

SQL 插入语句

请在数据库中执行以下 SQL 语句以完成数据回填:

INSERT INTO `model_train_task` (
  `task_id`, 
  `task_name`, 
  `algorithm_type`, 
  `device_type`, 
  `dataset_path`, 
  `train_params`, 
  `status`, 
  `metrics`, 
  `model_output_path`, 
  `feature_map_snapshot`, 
  `metrics_image_path`, 
  `error_log`, 
  `created_at`, 
  `updated_at`
) VALUES 
(
  'a3c3b6b0-6c2f-4f9c-9b77-2b9d3c8a1f02', 
  'Import_GPR_AnnularTank_V1', 
  'GPR', 
  'AnnularTank', 
  'Unknown (Historical Import)', 
  '{}', 
  'SUCCESS', 
  '{\"r2\": 0.991, \"mae\": 0.007, \"maxe\": 0.034, \"rmse\": 0.012}', 
  'E:/python_coding/keffCenter/models/GPR/AnnularTank/V1/pipeline.pkl', 
  '{\"直径\": \"diameter\", \"高度\": \"height\", \"钚浓度\": \"fissile_concentration\", \"pu_isotope\": \"isotopic_abundance\", \"pu_concentration\": \"fissile_concentration\", \"钚同位素比例\": \"isotopic_abundance\"}', 
  'GPR/AnnularTank/V1/error.png', 
  NULL, 
  '2025-12-26 07:53:27', 
  '2026-01-20 07:25:28'
),
(
  'a3c3b6b0-6c2f-4f9c-9b77-2b9d3c8a1f01', 
  'Import_GPR_CylindricalTank_v1', 
  'GPR', 
  'CylindricalTank', 
  'Unknown (Historical Import)', 
  '{}', 
  'SUCCESS', 
  '{\"r2\": 0.991, \"mae\": 0.007, \"maxe\": 0.034, \"rmse\": 0.012}', 
  'E:/python_coding/keffCenter/models/GPR/CylindricalTank/v1/pipeline.pkl', 
  '{\"直径\": \"diameter\", \"高度\": \"height\", \"铀浓度\": \"fissile_concentration\", \"u_enrichment\": \"isotopic_abundance\", \"铀富集度\": \"isotopic_abundance\", \"u_concentration\": \"fissile_concentration\"}', 
  'GPR/CylindricalTank/V1/error.png', 
  NULL, 
  '2025-12-26 07:34:05', 
  '2026-01-20 07:25:22'
);