Skip to content

Instantly share code, notes, and snippets.

@sbyrnes
Created May 27, 2012 02:39
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 sbyrnes/2796914 to your computer and use it in GitHub Desktop.
Save sbyrnes/2796914 to your computer and use it in GitHub Desktop.
Example use of Lyric
var input = new Array();
input['x'][0] = 1; input['y'][0] = 0.5;
input['x'][1] = 2; input['y'][1] = 1.6;
input['x'][2] = 3; input['y'][2] = 4.5;
input['x'][3] = 4; input['y'][3] = 7.6;
input['x'][4] = 5; input['y'][4] = 10.1;
var estimationInput = new Array();
estimationInput['x'][0] = 6;
estimationInput['x'][1] = 7;
estimationInput['x'][2] = 8;
var estimateData = applyModel(estimationInput, buildModel(data));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment