Skip to content

Instantly share code, notes, and snippets.

@sureshsaggar
Created May 1, 2013 09:02
Show Gist options
  • Save sureshsaggar/5494401 to your computer and use it in GitHub Desktop.
Save sureshsaggar/5494401 to your computer and use it in GitHub Desktop.
Forecasting in R: Python API to analyze time series data in Redis
curl -X GET http://0.0.0.0:6600/rpy/linearregression
{
"stat": "pass",
"future": {
"c": -19581061.761599176,
"points": 4,
"m": 0.01434285714285654,
"predictions": {
"2013-05-05": 36307,
"2013-05-04": 35068,
"2013-05-07": 38786,
"2013-05-06": 37546,
"2013-05-01": 31350,
"2013-05-03": 33829,
"2013-05-02": 32590
},
"d": 1.166368007659912
},
"statistic": "linearregression"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment