Implementing a machine learning algorithm in smart contract

Responded to your question in a separate topic: