Public
Edited
Jun 12, 2023
Insert cell
Insert cell
results = FileAttachment("spectrogram-1686579394635.json").json()
Insert cell
filterResults = (arr) => arr.reduce((acc, item) => {
if (!acc.includes(item.entity.file_seq_id)) {
acc.push(item.entity.file_seq_id);
}
return acc;
}, [])
Insert cell
filterResults(results).length
Insert cell
filterResults(results.slice(0, 1000)).length
Insert cell
filterResults(results.slice(0, 2000)).length
Insert cell
filterResults(results.slice(0, 3000)).length
Insert cell
filterResults(results.slice(0, 4000)).length
Insert cell
[0, 999, 1999, 2999, 3999, 4999].map((i) => results[i].distance)
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