Skip to main content

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

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

Source

src/ml.ts:63