I put together a quick decision tree and here's the output:
Here is the proposed JS that achieved an accuracy of 99% on the dataset:
function isWorn() { if (Bangle.isCharging()) return false; if (E.getTemperature() > 24.625) return true; if (Bangle.getAccel().mag > 1.045) return true; return false; }
1 Attachment
@splch started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I put together a quick decision tree and here's the output:
Here is the proposed JS that achieved an accuracy of 99% on the dataset:
1 Attachment