Public
Edited
Oct 18, 2023
Insert cell
Insert cell
data_sine_lr_scheduler.json
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
d3.interpolateBlues
Insert cell
data_sine_lr@1.json
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
data_sine_lr = FileAttachment("data_sine_lr_scheduler.json").json()
Insert cell
lrs = ["1e-5", "1e-4", "1e-3", "baseline"]
Insert cell
import {swatches} from "@d3/color-legend";
Insert cell
function prepare_data() {
data_sine_lr.test_losses.push(data_sine_lr.test_losses[0].map(d => 1e-2));
return data_sine_lr.test_losses
}
Insert cell
x = d3.scaleLinear()
.domain([0, 2000])
.range([40, 928 - 20]);
Insert cell
y = d3.scaleLinear()
.domain([0, 0.4])
.range([500 - 20, 40]);
Insert cell
line = d3.line()
.x((d, i) => x(i))
.y(d => y(d));
Insert cell
color = d3.scaleOrdinal()
.domain(lrs)
.range(d3.schemeBrBG[lrs.length])
.unknown("#ccc");
Insert cell
Insert cell
data = prepare_data();
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