r/PHPhelp • u/smoke4sanity • Mar 13 '17
I would like to create a PHP web application, which has a mathematical analysis portion best suited to python or R. What's the best way to incorporate either Python or R?
Hi,
Im building an app using Laravel (only on the modelling phase) and Im just thinking how easy/hard it would for users to enter data, maybe large amounts of data, have calculations performed in R or Python, have the results in either graphs or text passed back to the user in the Python web app.
Could someone please point me in the right direction to determine the best way I could do that? Or would there be a different web progmming language I could use? THanks!
8
Upvotes
1
u/smoke4sanity Mar 13 '17
Thank you so much for your reply!
The user scenario is a user gets historical data for a sports team, so like anywhere up to 5 or 6 seasons worth of data, and performs calculations such as regressions, correlation coefficients etc.
The results would have to be real time. I've checked out Rabbit MQ it seems pretty cool, but is it efficient? For example, if the output is a correlation chart, would it allow for that image to be passed back? Another commenter mentioned websockets; do you have any idea about that?