Published
Edited
Feb 13, 2018
1 star
Insert cell
Insert cell
Insert cell
rapidLib = require("https://www.doc.gold.ac.uk/eavi/rapidmix/RapidLib.js")
.catch(() => window.RapidLib())
Insert cell
Insert cell
myData = [
{input: [-48], output: [50.81]},
{input: [54], output: [185.00]},
{input: [60], output: [261.63]},
{input: [66], output: [369.994]},
{input: [100], output: [350.25]}
]
Insert cell
Insert cell
Insert cell
Insert cell
myRegression = {
var myRegression = new rapidLib.Regression()
myRegression.setNumHiddenNodes(numHiddenUnits);
myRegression.setNumHiddenLayers(numHiddenLayers);
myRegression.setNumEpochs(numEpochs);
myRegression.train(myData);

yield myRegression
}
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
Insert cell
Insert cell
Insert cell
/*
This is another way of importing RapidLib
rapidLib = {
require('https://www.doc.gold.ac.uk/eavi/rapidmix/RapidLib.js')
yield window.RapidLib();
}*/
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