Public
Edited
Nov 8, 2024
Insert cell
Insert cell
PCA = (await import("https://esm.sh/ml-pca@4.1.1")).PCA
Insert cell
data = generateRandomMatrix(10000, 1000)
Insert cell
generateRandomMatrix = (rows, cols) => {
return Array.from({ length: rows }, () =>
Array.from({ length: cols }, () => Math.random())
);
}
Insert cell
test = new PCA(data)
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more