Public
Edited
Feb 12
Fork of Untitled
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
compactRange = (extent, options) => {
const elt = Inputs.range(extent, options);
elt.querySelector('label').style.width = '10px'
return elt;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
categorical_xent = -Math.log(probs[correctClass]) / Math.log(bases.xent)
Insert cell
Insert cell
Insert cell
logits
Insert cell
logits_with_temperature = logits.map(x => x / temperature)
Insert cell
exp_logits = logits_with_temperature.map(x => Math.pow(bases.logit, x))
Insert cell
sum_exp_logits = sum_array(exp_logits)
Insert cell
logsumexp = Math.log(sum_exp_logits)
Insert cell
probs = exp_logits.map(x => x / sum_exp_logits)
Insert cell
Insert cell
Insert cell
import {set} from "@observablehq/synchronized-inputs"
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