Home » Php » How do I embed sklearn code in my PHP backend code?

How do I embed sklearn code in my PHP backend code?

Posted by: admin October 26, 2017 Leave a comment

Questions:

I am creating a website which uses PHP on its back end. Now I am adding machine learning capabilities to my website which are accessed by HTTP methods GET and POST. But since sklearn is in Python, how do I enable my PHP code to call python based sklearn code? Or is there a way I can use some library to call Python code?

Answers:

One possible option for you to consider is: https://github.com/nok/sklearn-porter