Skip to content

Instantly share code, notes, and snippets.

@abhisheksoni27
Last active June 13, 2017 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhisheksoni27/e81202a2334d96efc64c2cae23a552b5 to your computer and use it in GitHub Desktop.
Save abhisheksoni27/e81202a2334d96efc64c2cae23a552b5 to your computer and use it in GitHub Desktop.
const ml = require('ml-regression');
const csv = require('csvtojson');
const SLR = ml.SLR; // Simple Linear Regression
const csvFilePath = 'advertising.csv'; // Data
let csvData = [], // parsed Data
X = [], // Input
y = []; // Output
let regressionModel;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment