Name: app-mojo-servlet
Owner: H2O.ai
Description: Example of putting a mojo zip file as a resource into a java servlet.
Created: 2017-07-21 01:24:37.0
Updated: 2017-07-21 01:30:53.0
Pushed: 2017-07-25 16:44:55.0
Homepage: null
Size: 14172
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This example shows a generated MOJO being called using a REST API.
(Build files)
(Dataset and model training script)
(Generated)
(Servlet Back-end)
(Output)
The model MOJO file is dropped into src/main/resources/regression_model.zip
cript script.R
gradlew build
The output of this process is build/libs/ROOT.war
This is handy for testing.
gradlew jettyRunWar
-v "http://localhost:8080/predict?priority=1&type=PS"
The dataset is telephone data recorded from a call-center of ?Anonymous Bank?. The data can be found here: