Public
Edited
Jun 16, 2024
Importers
17 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
clusterEmbedding = require('@epivecs/cluster_embedding@0.1.11')
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
vizHelper = require('@epivecs/visualization@0.1.0')
Insert cell
Insert cell
Insert cell
colorer = vizHelper.positionColorer(resultKMC.embeddedCentroids, [form.innerLightness,form.outerLightness])
Insert cell
Insert cell
Insert cell
processing = require('@epivecs/processing@0.2.0')
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
normalizedVectors = processing.zNormalize(covidData.vectors.map(d => d.vector), "row")
Insert cell
Insert cell
Insert cell
resultCovid = clusterEmbedding.clusterEmbed(normalizedVectors, 9, "kmc+sammon")
Insert cell
Insert cell
colors = {
const colorer = vizHelper.positionColorer(resultCovid.embeddedCentroids, [.8,.7])
return resultCovid.embeddedCentroids.map(d => colorer(d))
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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