Last active
June 13, 2017 10:40
-
-
Save abhisheksoni27/e81202a2334d96efc64c2cae23a552b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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