bethrichardson / mae-be

Backend for the Mae application. Stores and passes user data for analysis to IBM Watson.
1 stars 1 forks source link

Rolling baselines are recorded for new mood values #7

Closed Blackbaud-BethRichardson closed 7 years ago

Blackbaud-BethRichardson commented 7 years ago

Baseline service is called by the analyze service whenever a new mood rating is calculated to run the calculation determined by the past 14 days of mood ratings. Each item in the mood rating (including needs) should have a baseline calculated. This baseline is considered the current state of the user, to provide a 2 week window of state, rather than individual dips in daily values.

The analyze service returns this value returned by the baseline service rather than the current daily value.