Matrix decomposition reduces the number of dimensions in a vector, to improve relevance and reduce computation required.
content_copy
pgml.decompose(
project_name TEXT, -- project name
vector REAL[] -- features to decompose
)
Parameter |
Example |
Description |
project_name |
'My First PostgresML Project' |
The project name used to train a decomposition model in pgml.train() . |
vector |
ARRAY[0.1, 0.45, 1.0] |
The feature vector to transform. |
content_copy
SELECT pgml.decompose('My PCA', ARRAY[0.1, 2.0, 5.0]);