A simple react demo app that learns user navigation behavior/sequence, predict and prefetch resources for next user action.
-
To train alz-predictor, navigate through the provided links:
- Home
- Users
- Posts
- Comments
- Todos
-
To get prediction, simply reload current app page, an alert will show the current prediction (with highest probably). If the prediction is greater than
PROBABILITY_THRESHOLD (0.7)
, then it'll prefetch data for that link. -
This app use
localStorage
to persist training. AReset Training
button is provided.
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.