you're right it does work locally.
yhat is built for embedding these types of analyses in a production application
yhat is built for embedding these types of analyses in a production application
For example, http://colorbot.herokuapp.com stores the optimal model for the neural network in JSON, right in the code.