clustering-tfjs
Version:
High-performance TypeScript clustering algorithms (K-Means, Spectral, Agglomerative) with TensorFlow.js acceleration and scikit-learn compatibility
24 lines • 882 B
TypeScript
export interface BenchmarkResult {
algorithm: string;
backend: string;
datasetSize: number;
features: number;
executionTime: number;
memoryUsed: number;
memoryPeak: number;
tensorCount: number;
backendInitTime: number;
accuracy?: number;
}
export interface BenchmarkConfig {
samples: number;
features: number;
centers: number;
label: string;
}
export declare const BENCHMARK_CONFIGS: BenchmarkConfig[];
export declare function benchmarkAlgorithm(algorithm: 'kmeans' | 'spectral' | 'agglomerative', config: BenchmarkConfig, backend: string): Promise<BenchmarkResult>;
export declare function getAvailableBackends(): Promise<string[]>;
export declare function runBenchmarkSuite(): Promise<BenchmarkResult[]>;
export declare function formatBenchmarkResults(results: BenchmarkResult[]): string;
//# sourceMappingURL=index.d.ts.map