Published
Edited
Dec 22, 2019
Importers
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
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
user_pred
Insert cell
user_cdf = guesstimatorInputToCdf({
guesstimatorInput: user_pred,
simulationSampleCount: 10000,
outputSampleCount: 1000,
smoothingWidth: 30
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
a = ({ xs: [1, 2, 3, 5, 6, 7, 8, 8, 10],
ys: [1, 1, 4, 5, 8, 12, 5, 4, 2] })
Insert cell
Insert cell
lodash = require("lodash")
Insert cell
samplesFromHistogram = lodash.zip(a.xs, a.ys).flatMap(x => new Array(x[1]).fill(x[0]))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
mutate_query = `mutation {
measurableCreate(input: {
name: "test"
valueType:FLOAT
channelId: "e351f8f3-cf9c-4787-a787-68257220084d"
}) {
id
}
}`
Insert cell
JSON.stringify(mutate_query)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more