compute_pca_svd
Computes verified top-k Principal Component Analysis (PCA) / Singular Value Decomposition (SVD) on distributed GPU workers via randomized subspace iteration or stateful power iteration.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"matrix": "<matrix>",
"k": "<k>"
},
"name": "compute_pca_svd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | Yes | Number of top singular/principal components to extract. | |
| center | No | Mean-center columns before decomposition (standard PCA). | |
| matrix | Yes | File path (.npy/.npz/.safetensors) or inline 2D array of shape (M, N). | |
| method | No | Decomposition algorithm ('randomized' or 'power_iteration'). | randomized |
| output_path | No | Optional output file path (.npz or .safetensors) to save U, S, Vt. |