supervised-learning is a toolkit to get you doing supervised machine learning quickly.
npm install supervised-learning -S
Be aware that this module is just beginning and there will be many breaking changes as a result. This will stabilise at v1.
A working example including test and training data can be found here.