feat(research): isolate candidates and add reviewed paper promotion
This commit is contained in:
parent
26b97265c6
commit
25b5cbf481
128 changed files with 13038 additions and 1388 deletions
|
|
@ -76,7 +76,7 @@ export function validationPhasePreview(
|
|||
preview: ChronologicalValidationPreview,
|
||||
phase: ValidationPhase,
|
||||
winner?: ExperimentCandidate,
|
||||
reviewId?: string
|
||||
reviewId?: string | null
|
||||
) {
|
||||
const partition = preview.partitions.find(p => p.phase === phase);
|
||||
if (!partition) {
|
||||
|
|
@ -84,7 +84,11 @@ export function validationPhasePreview(
|
|||
}
|
||||
const request = structuredClone(partition.request);
|
||||
if (phase !== 'train') {
|
||||
if (!winner || !reviewId) {
|
||||
if (
|
||||
!winner ||
|
||||
reviewId === undefined ||
|
||||
(request.strategy.origin === 'builtin' && reviewId === null)
|
||||
) {
|
||||
throw new Error('Holdout admission requires a frozen winner and current approval');
|
||||
}
|
||||
request.strategy.selection.parameters = structuredClone(
|
||||
|
|
@ -97,6 +101,14 @@ export function validationPhasePreview(
|
|||
backtestId: preview.input.backtestId,
|
||||
name: `${preview.input.name} · ${phase}`,
|
||||
grid: phase === 'train' ? preview.input.grid : {},
|
||||
...(preview.input.candidate
|
||||
? {
|
||||
candidate: {
|
||||
...preview.input.candidate,
|
||||
parameters: structuredClone(request.strategy.selection.parameters),
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
},
|
||||
canonicalRunRequestSchema.parse(request),
|
||||
partition.dataset
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue