Skip to content

Instantly share code, notes, and snippets.

Avatar
🤙

Jared Wilber jwilber

🤙
View GitHub Profile
View meanSquaredError.js
// calculate MSE for two equal-dimension arrays
const meanSquaredError = (actual, pred) => {
// helper funcs
const sqr = a => a * a;
const add = (a, b) => a + b;
const difference = (a, b) => a.map((x, i) => x - b[i]);
// calculate MSE
const squaredError = difference(actual, pred).map(sqr);
View .block
license: mit
@jwilber
jwilber / .block
Last active Mar 30, 2020
fresh block
View .block
license: mit
@jwilber
jwilber / .block
Last active Mar 2, 2020
histogram (no svg)
View .block
license: mit
@jwilber
jwilber / .block
Last active Dec 25, 2019
interpolated line-chart with legend
View .block
license: mit
@jwilber
jwilber / .block
Created Nov 16, 2019
roughViz StackedBar Demo
View .block
license: mit
@jwilber
jwilber / .block
Last active Oct 7, 2019
roughViz Donut Demo
View .block
license: mit
@jwilber
jwilber / .block
Last active Nov 16, 2019
roughViz Bar Demo
View .block
license: mit
@jwilber
jwilber / .block
Created Oct 7, 2019
roughViz BarH Demo
View .block
license: mit
@jwilber
jwilber / .block
Created Oct 7, 2019
roughViz Pie Demo
View .block
license: mit