UNPKG

@astermind/astermind-synth

Version:

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

55 lines (54 loc) 1.42 kB
/** * PerfectGenerator - Best of all worlds * Combines exact retrieval, pattern matching, and improved ELM generation * Provides highest realism with good variation */ import { LabeledSample } from '../types'; export interface PerfectGeneratorConfig { maxLength: number; seed?: number; preferExact?: boolean; usePatternMatching?: boolean; useImprovedELM?: boolean; elmHiddenUnits?: number; elmActivation?: 'tanh' | 'relu' | 'leakyrelu' | 'sigmoid' | 'linear' | 'gelu'; elmRidgeLambda?: number; noiseSize?: number; } export declare class PerfectGenerator { private exact; private hybrid; private elm; private patternCorrector; private config; private trainingSamples; constructor(config: PerfectGeneratorConfig); /** * Train the perfect generator */ train(samples: LabeledSample[]): void; /** * Lazy train hybrid generator */ private ensureHybridTrained; /** * Lazy train ELM generator */ private ensureELMTrained; /** * Generate with best strategy */ generate(label: string, seed?: number): string; /** * Generate multiple samples with best strategy */ generateBatch(label: string, count: number): string[]; /** * Get all available labels */ getLabels(): string[]; /** * Check if generator is trained */ isTrained(): boolean; }