Public
Edited
Dec 7, 2022
Insert cell
Insert cell
real_data.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
data_numerical.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
data = data_numerical
Insert cell
OUTPUT_OBJECTS = data.map(e => Object.fromEntries(Object.entries(e).slice(0, 17)))
Insert cell
// INPUTS_OBJECTS.map(e => Object.values(e))
Insert cell
outputs_raw = OUTPUT_OBJECTS.map(e => Object.values(e))
Insert cell
outputs = tf.tensor(OUTPUT_OBJECTS.map(e => Object.values(e)))
Insert cell
INPUT_OBJECTS = data.map(e => Object.fromEntries(Object.entries(e).slice(18,31)))
Insert cell
inputs_raw = INPUT_OBJECTS.map(e => Object.values(e))
Insert cell
inputs = tf.tensor(INPUT_OBJECTS.map(e => Object.values(e)))
Insert cell
tf = require("@tensorflow/tfjs@0.8.0/dist/tf.min.js")
Insert cell
tfvis = require('https://bundle.run/@tensorflow/tfjs-vis@0.1.1')
Insert cell
// mlr = MLR(inputs_raw, outputs_raw)
Insert cell
MLR = require("ml-regression-multivariate-linear@2.0.4")
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