Published
Edited
Nov 20, 2019
Insert cell
md`# Bug with Prediction Analysis?`
Insert cell
questionID = "e827ff9f-7327-4243-9e72-cbf9e6da9376"
Insert cell
req = request(query)
Insert cell
asirkj = req.data.measurements.edges[5].node
Insert cell
aggregationBot = req.data.measurements.edges[8].node
Insert cell
resolution = req.data.measurements.edges[0].node
Insert cell
contextLocation = ({
agentPrediction: {
data: { xs: asirkj.value.floatCdf.xs, ys: asirkj.value.floatCdf.ys },
dataType: "floatCdf"
},
marketPrediction: {
data: { xs: aggregationBot.value.floatCdf.xs, ys: aggregationBot.value.floatCdf.ys },
dataType: "floatCdf"
},
resolution: {
data: { xs: resolution.value.floatCdf.xs, ys: resolution.value.floatCdf.ys },
dataType: "floatCdf"
}

})

Insert cell
predictionAnalysis = require('@foretold/prediction-analysis@0.0.4/dist/index.js')
Insert cell
PA = new predictionAnalysis.PredictionResolutionGroup(contextLocation).pointScore("MarketScore").data
// Why is this positive?
Insert cell
query = `
{
measurements(measurableId:"${questionID}" last:500){
total
edges{
node{
id
description
createdAt
updatedAt
value{
floatCdf{
xs
ys
}
}

valueText
competitorType
agent{
id
name
}
}
}
}
}
`
Insert cell
import {request} from "@jjj/bot-tips"
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