배터리 잔여 시간 예측 정밀도 개선
This commit is contained in:
@@ -714,6 +714,7 @@
|
||||
if (Array.isArray(remaining.sources) && remaining.sources.length > 0) {
|
||||
const labels = {
|
||||
recent_window: '최근 추세',
|
||||
robust_regression: '강건 회귀',
|
||||
learned_profile: '장기 학습',
|
||||
};
|
||||
lines.push(`계산 출처: ${remaining.sources.map(source => labels[source] || source).join(', ')}`);
|
||||
@@ -723,6 +724,9 @@
|
||||
if (row.source === 'learned_profile') {
|
||||
return `장기 ${row.intervals || 0}구간`;
|
||||
}
|
||||
if (row.source === 'robust_regression') {
|
||||
return `회귀 ${row.minutes}분`;
|
||||
}
|
||||
return `${row.minutes}분`;
|
||||
}).join(', ')}`);
|
||||
lines.push('');
|
||||
@@ -732,7 +736,10 @@
|
||||
lines.push(`- 장기 학습: ${row.intervals || 0}구간 / SOC대 ${row.soc_buckets || 0}개 / 누적감소 ${Number(row.drop_percent || 0).toFixed(3)}% / 신뢰도 ${(Number(row.confidence || 0) * 100).toFixed(0)}%`);
|
||||
} else {
|
||||
const load = row.load_factor === null || row.load_factor === undefined ? '-' : `${Number(row.load_factor).toFixed(3)}x`;
|
||||
lines.push(`- 최근 ${row.minutes}분: 감소 ${Number(row.drop_percent || 0).toFixed(3)}% / 신뢰도 ${(Number(row.confidence || 0) * 100).toFixed(0)}% / 부하보정 ${load}`);
|
||||
const prefix = row.source === 'robust_regression' ? '강건 회귀' : '최근 추세';
|
||||
const kept = row.kept_ratio === null || row.kept_ratio === undefined ? '' : ` / 유효점 ${(Number(row.kept_ratio) * 100).toFixed(0)}%`;
|
||||
const stability = row.stability === null || row.stability === undefined ? '' : ` / 안정도 ${(Number(row.stability) * 100).toFixed(0)}%`;
|
||||
lines.push(`- ${prefix} ${row.minutes}분: 감소 ${Number(row.drop_percent || 0).toFixed(3)}% / 신뢰도 ${(Number(row.confidence || 0) * 100).toFixed(0)}% / 부하보정 ${load}${kept}${stability}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user