Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/immusen/vertx-pmml
Demo of high performance AI model (pmml export) evaluator api base on Vert.x, Supports dynamic routing configuration for multiple pmml models via JSON
https://github.com/immusen/vertx-pmml
ai api dynamic-routing eventbus java java-pmml jpmml pmml pmml-evaluator verticle vertx vertx-web vertx4
Last synced: 18 days ago
JSON representation
Demo of high performance AI model (pmml export) evaluator api base on Vert.x, Supports dynamic routing configuration for multiple pmml models via JSON
- Host: GitHub
- URL: https://github.com/immusen/vertx-pmml
- Owner: immusen
- License: agpl-3.0
- Created: 2022-05-04T15:28:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-05T16:03:11.000Z (over 2 years ago)
- Last Synced: 2024-11-01T02:23:32.660Z (2 months ago)
- Topics: ai, api, dynamic-routing, eventbus, java, java-pmml, jpmml, pmml, pmml-evaluator, verticle, vertx, vertx-web, vertx4
- Language: Java
- Homepage:
- Size: 89.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- vertx-awesome - AI model output API based on PMML with Vert.x - High performance PMML evaluator API based on Vert.x. Supports dynamic routing configuration for multiple PMML models via JSON. (Examples)
README
### vertx-pmml demo
```
mvn clean package
java -jar .\target\evaluate-1.0.0-SNAPSHOT-fat.jar -conf config\config.json
``````
curl 'http://localhost:8080/predict/iris' \
-d '{
"reqSn": "00000",
"data": {
"sepal_length": 5.4,
"sepal_width": 3.9,
"petal_length": 1.7,
"petal_width": 0.4
}
}'
```### Config
```
{
"http.port": 8080,
"route": {
"/predict/iris": {
"access": "public",
"method": "POST",
"actor": "evaluter.predict",
"ext": {
"name": "IRIS_SVC",
"pmml": ".\\config\\model_svc.pmml",
"version": "1.0.0"
}
},
"/stat/:name": {
"access": "session.admin",
"method": "GET",
"actor": "evaluter.stat"
},
"/console/login": {
"access": "public",
"method": "GET",
"actor": "web_login"
}... Any other routers with pmml or some web services ...
}
}
```[jpmml-evaluator](https://github.com/jpmml/jpmml-evaluator)
[demo pmml train from iris dataset](https://archive.ics.uci.edu/ml/datasets/iris)