/** * The separator between a shape's tags in a retention key, matching the country–shape * census representation (#2893, HOLDOUT_AND_EVALUATION section 5.1). */ export declare const SHAPE_SEPARATOR = " -> "; /** * The key a retention table is indexed by: the row's country and its ordered shape. */ export declare function shapeKeyOf(country: string, spanTags: readonly string[]): string; /** * The independent group a row belongs to for retention counting (section 5.1's grouping rule): * its augmentation base when one is recorded, else its record id, so every * rendered variant of one record counts once. */ export declare function groupIDOf(row: { source_id: string; base_source_id?: string | null; augmentation?: { base_source_id?: string | null; } | null; }): string; /** * One country–shape combination's group supply per split. */ export interface ShapeSupplyEntry { country: string; shape: string; groups: number; trainGroups: number; valGroups: number; testGroups: number; } /** * The retention decision a supply pass registers (section 5.1): a country–shape * below the floor keeps every one of its rows in training. */ export interface SplitRetention { /** * The minimum independent training groups a combination keeps after the holdout. */ floor: number; /** * Keys of {@linkcode shapeKeyOf} whose post-holdout training remainder falls * below {@linkcode SplitRetention.floor}. */ protectedShapes: ReadonlySet; } /** * The rows a supply pass reads: a labeled row's identity, components and ordered spans. */ export interface ShapeSupplyRow { source_id: string; country: string; components: Partial>; span_tags: readonly string[]; base_source_id?: string | null; augmentation?: { base_source_id?: string | null; } | null; } //# sourceMappingURL=retention.d.ts.map