Files
dpb/backend/sql/weld_prediction_rigor.sql
34047007@qq.com b95053c52c init: 初始化 dpb 桃育种系统代码库
前后端 + 后端 FastAPI 全量源码、部署脚本与文档。
2026-08-06 00:17:49 +08:00

14 lines
1.1 KiB
SQL
Raw Permalink 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.
-- 统计严谨 P0.5:配合力复核后补齐预测复现性与 PA。
-- ① bre_prediction 溯源三字段:data_version(数据快照版本)/input_hash(输入快照SHA256)/engine_version(引擎版本)
-- ② bre_prediction_value.pa:预测准确度 PA=√reliabilityreliability 仍为标准存值,PA 为派生便捷字段)
-- 幂等:IF NOT EXISTS,可重复执行。
ALTER TABLE bre_prediction ADD COLUMN IF NOT EXISTS data_version varchar(32);
ALTER TABLE bre_prediction ADD COLUMN IF NOT EXISTS input_hash varchar(64);
ALTER TABLE bre_prediction ADD COLUMN IF NOT EXISTS engine_version varchar(32);
ALTER TABLE bre_prediction_value ADD COLUMN IF NOT EXISTS pa double precision;
COMMENT ON COLUMN bre_prediction.data_version IS '数据版本(运行时输入数据快照版本,用于 MLOps 复现)';
COMMENT ON COLUMN bre_prediction.input_hash IS '输入快照 SHA256(表型均值+系谱,检测数据漂移)';
COMMENT ON COLUMN bre_prediction.engine_version IS '统计引擎版本(求解器版本)';
COMMENT ON COLUMN bre_prediction_value.pa IS '预测准确度 PA=√可靠性';