Platform
Resources
Pricing
Sign in
Get started
Jeya Balaji Balasubramanian
AI Researcher in Medicine. All opinions are my own.
Workspace
Fork
Public
By
Jeya Balaji Balasubramanian
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
PCA
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
data
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
generateRandomMatrix
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
test
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML