UNPKG

@astermind/astermind-synth

Version:

OmegaSynth - Label-Conditioned Synthetic Data Generator for AsterMind ELM/KELM Pipelines

37 lines (36 loc) 969 B
/** * RetrievalGenerator - Simple deterministic retrieval sampler * Uniform random sampling from stored labeled samples */ import { LabeledSample } from '../types'; export declare class RetrievalGenerator { private store; private rng; private seed?; constructor(seed?: number); /** * Ingest labeled samples into the store */ ingest(samples: LabeledSample[]): void; /** * Sample k values for a given label * Returns empty array if label doesn't exist or has no samples */ sample(label: string, k?: number): string[]; /** * Get a single sample (convenience method) */ sampleOne(label: string): string | null; /** * Check if a label has samples */ hasLabel(label: string): boolean; /** * Get all available labels */ getLabels(): string[]; /** * Reset the generator (clears store and optionally resets seed) */ reset(seed?: number): void; }