pca()
pca(
table,features,components,center,scale):Promise<DataFrame>
Principal component analysis. See example: https://public.datagrok.ai/js/samples/domains/data-science/pca
Parameters
| Parameter | Type | Description |
|---|---|---|
table | DataFrame | Data table. |
features | string[] | List of column names containing features. |
components | number | Number of clusters. |
center | boolean | Center features data before PCA. |
scale | boolean | Scale features data before PCA. |
Returns
Promise <DataFrame>