clustering-tfjs
Version:
High-performance TypeScript clustering algorithms (K-Means, Spectral, Agglomerative) with TensorFlow.js acceleration and scikit-learn compatibility
10 lines • 424 B
TypeScript
import * as tf from '../tf-adapter';
/**
* Returns the `k` smallest eigenvectors AND eigenvalues of the provided symmetric matrix.
* This is needed to apply diffusion map scaling like sklearn does.
*/
export declare function smallest_eigenvectors_with_values(matrix: tf.Tensor2D, k: number): {
eigenvectors: tf.Tensor2D;
eigenvalues: tf.Tensor1D;
};
//# sourceMappingURL=smallest_eigenvectors_with_values.d.ts.map