Dash Distance
This is a small utility I wrote to solve a personal problem.
I tend to run by time rather than distance, but that doesn’t really help when I’m trying to plan a route. I wanted to be able to estimate my distance based on the elevation I want and the duration I’m aiming for.
I had an older version of this tool that relied on sklearn to train a regression model on my previous runs, but this required a backend. This version uses ml-regression-multivariate-linear to train a regression model in the browser, so it can be used as a static site. The run history is stored in local storage too, so my backend requirements disappear entirely.
I also use three.js to render a 3D plot of the resulting regression model, which is a nice way to visualise the relationship between time, elevation and distance.
