Machine Learning via function node

Hi friends. I've implemented some of the [most popular machine learning algorithms, on top of JS libraries like ml.js, brain.js and others from NPM.
However, some of them are not properly configured and are currently not functioning. To bring these to life and boost node-red with this AI/ML capability, I kindly need your assistance. The goal is to create a node-red node(s) from it. Much appreciated!