Skip to main content

pca()

pca(table, features, components, center, scale): Promise<DataFrame>

Defined in: src/ml.ts:60

Principal component analysis. See example: https://public.datagrok.ai/js/samples/domains/data-science/pca

Parameters

ParameterTypeDescription
tableDataFrameData table.
featuresstring[]List of column names containing features.
componentsnumberNumber of clusters.
centerbooleanCenter features data before PCA.
scalebooleanScale features data before PCA.

Returns

Promise<DataFrame>

Async