Add timeline vector metrics

This commit is contained in:
dahyeon committed 2026-07-03 00:12:13 -07:00
1 parent 77ba93b94a
commit a69e86f2bc
13 files changed
+1543 -37

No files matched your search

+1 -1
View File
@@ -79,7 +79,7 @@ export interface PlayerProfileSummaryDto {
queueId: number;
sampleGameCount: number;
championPool: ChampionPoolEntryDto[];
playstyle: Record<MetricId, number>;
playstyle: Partial<Record<MetricId, number>>;
featureSchemaVersion: number;
confidence: number;
}
+206 -1
View File
@@ -1,4 +1,4 @@
export const FEATURE_SCHEMA_VERSION = 1;
export const FEATURE_SCHEMA_VERSION = 2;
export type MetricDirection = 'higherIsBetter' | 'lowerIsBetter' | 'neutral';
export type Role = 'TOP' | 'JUNGLE' | 'MIDDLE' | 'BOTTOM' | 'UTILITY';
@@ -210,6 +210,211 @@ export const METRICS = [
UTILITY: { min: 0, max: 1.5 },
}),
},
{
id: 'goldDiffAt10',
label: '10분 골드 차이',
direction: 'higherIsBetter',
kind: 'scalar',
includeInVector: true,
// TODO: MVP 3에서 인구 percentile baseline으로 교체.
baseline: allRoles({
TOP: { min: -3_000, max: 3_000 },
JUNGLE: { min: -3_000, max: 3_000 },
MIDDLE: { min: -3_000, max: 3_000 },
BOTTOM: { min: -3_000, max: 3_000 },
UTILITY: { min: -2_000, max: 2_000 },
}),
},
{
id: 'goldDiffAt14',
label: '14분 골드 차이',
direction: 'higherIsBetter',
kind: 'scalar',
includeInVector: true,
// TODO: MVP 3에서 인구 percentile baseline으로 교체.
baseline: allRoles({
TOP: { min: -4_000, max: 4_000 },
JUNGLE: { min: -4_000, max: 4_000 },
MIDDLE: { min: -4_000, max: 4_000 },
BOTTOM: { min: -4_000, max: 4_000 },
UTILITY: { min: -2_500, max: 2_500 },
}),
},
{
id: 'csDiffAt10',
label: '10분 CS 차이',
direction: 'higherIsBetter',
kind: 'scalar',
includeInVector: true,
// TODO: MVP 3에서 인구 percentile baseline으로 교체.
baseline: allRoles({
TOP: { min: -60, max: 60 },
JUNGLE: { min: -50, max: 50 },
MIDDLE: { min: -60, max: 60 },
BOTTOM: { min: -60, max: 60 },
UTILITY: { min: -20, max: 20 },
}),
},
{
id: 'xpDiffAt10',
label: '10분 경험치 차이',
direction: 'higherIsBetter',
kind: 'scalar',
includeInVector: true,
// TODO: MVP 3에서 인구 percentile baseline으로 교체.
baseline: allRoles({
TOP: { min: -2_000, max: 2_000 },
JUNGLE: { min: -2_000, max: 2_000 },
MIDDLE: { min: -2_000, max: 2_000 },
BOTTOM: { min: -2_000, max: 2_000 },
UTILITY: { min: -1_500, max: 1_500 },
}),
},
{
id: 'deathsBefore14',
label: '14분 전 사망',
direction: 'lowerIsBetter',
kind: 'scalar',
includeInVector: true,
// TODO: MVP 3에서 인구 percentile baseline으로 교체.
baseline: allRoles({
TOP: { min: 0, max: 6 },
JUNGLE: { min: 0, max: 5 },
MIDDLE: { min: 0, max: 6 },
BOTTOM: { min: 0, max: 6 },
UTILITY: { min: 0, max: 7 },
}),
},
{
id: 'killParticipationBefore14',
label: '14분 전 킬 관여율',
direction: 'higherIsBetter',
kind: 'scalar',
includeInVector: true,
// TODO: MVP 3에서 인구 percentile baseline으로 교체.
baseline: allRoles({
TOP: { min: 0, max: 1 },
JUNGLE: { min: 0, max: 1 },
MIDDLE: { min: 0, max: 1 },
BOTTOM: { min: 0, max: 1 },
UTILITY: { min: 0, max: 1 },
}),
},
{
id: 'earlyWardsPerMin',
label: '초반 분당 와드',
direction: 'higherIsBetter',
kind: 'scalar',
includeInVector: true,
// TODO: MVP 3에서 인구 percentile baseline으로 교체.
baseline: allRoles({
TOP: { min: 0, max: 1 },
JUNGLE: { min: 0, max: 1.2 },
MIDDLE: { min: 0, max: 1 },
BOTTOM: { min: 0, max: 1 },
UTILITY: { min: 0, max: 2 },
}),
},
{
id: 'objectivePreWardRate',
label: '오브젝트 전 와드율',
direction: 'higherIsBetter',
kind: 'ratio',
includeInVector: true,
baseline: allRoles({
TOP: { min: 0, max: 1 },
JUNGLE: { min: 0, max: 1 },
MIDDLE: { min: 0, max: 1 },
BOTTOM: { min: 0, max: 1 },
UTILITY: { min: 0, max: 1 },
}),
},
{
id: 'eliteObjectiveParticipationRate',
label: '에픽 오브젝트 관여율',
direction: 'higherIsBetter',
kind: 'ratio',
includeInVector: true,
baseline: allRoles({
TOP: { min: 0, max: 1 },
JUNGLE: { min: 0, max: 1 },
MIDDLE: { min: 0, max: 1 },
BOTTOM: { min: 0, max: 1 },
UTILITY: { min: 0, max: 1 },
}),
},
{
id: 'isolationTendency',
label: '고립 성향',
direction: 'lowerIsBetter',
kind: 'scalar',
includeInVector: true,
// TODO: MVP 3에서 인구 percentile baseline으로 교체.
baseline: allRoles({
TOP: { min: 0, max: 8_000 },
JUNGLE: { min: 0, max: 8_000 },
MIDDLE: { min: 0, max: 8_000 },
BOTTOM: { min: 0, max: 8_000 },
UTILITY: { min: 0, max: 8_000 },
}),
},
{
id: 'teamfightFirstEngagementParticipationRate',
label: '한타 첫 교전 관여율',
direction: 'higherIsBetter',
kind: 'ratio',
includeInVector: true,
baseline: allRoles({
TOP: { min: 0, max: 1 },
JUNGLE: { min: 0, max: 1 },
MIDDLE: { min: 0, max: 1 },
BOTTOM: { min: 0, max: 1 },
UTILITY: { min: 0, max: 1 },
}),
},
{
id: 'teamfightCleanupKillParticipationRate',
label: '한타 마무리 관여율',
direction: 'higherIsBetter',
kind: 'ratio',
includeInVector: true,
baseline: allRoles({
TOP: { min: 0, max: 1 },
JUNGLE: { min: 0, max: 1 },
MIDDLE: { min: 0, max: 1 },
BOTTOM: { min: 0, max: 1 },
UTILITY: { min: 0, max: 1 },
}),
},
{
id: 'deathWithShutdownBountyGivenRate',
label: '현상금 사망률',
direction: 'lowerIsBetter',
kind: 'ratio',
includeInVector: true,
baseline: allRoles({
TOP: { min: 0, max: 1 },
JUNGLE: { min: 0, max: 1 },
MIDDLE: { min: 0, max: 1 },
BOTTOM: { min: 0, max: 1 },
UTILITY: { min: 0, max: 1 },
}),
},
{
id: 'ccTimePerMinute',
label: '분당 군중제어 시간',
direction: 'higherIsBetter',
kind: 'scalar',
includeInVector: true,
// TODO: MVP 3에서 인구 percentile baseline으로 교체.
baseline: allRoles({
TOP: { min: 0, max: 10 },
JUNGLE: { min: 0, max: 12 },
MIDDLE: { min: 0, max: 10 },
BOTTOM: { min: 0, max: 8 },
UTILITY: { min: 0, max: 15 },
}),
},
] as const satisfies readonly MetricDefinition[];
export type MetricId = (typeof METRICS)[number]['id'];