Skip to content

Commit

Permalink
Update a section for Java gateways
Browse files Browse the repository at this point in the history
  • Loading branch information
scorebot committed Sep 14, 2024
1 parent 425ad62 commit d8f4016
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ pip install --upgrade git+https://github.com/autodeployai/pypmml.git
148 10 Iris-virginica 0.978261 0.0 0.021739 0.978261
149 10 Iris-virginica 0.978261 0.0 0.021739 0.978261
```
## Support Java gateways
PyPMML supports both backends access to Java from Python: "py4j" and "jpype", `Py4j` is used by default, you can call the following code to switch to `jpype` before loading models:
```python
from pypmml import PMMLContext

PMMLContext.getOrCreate(gateway="jpype")
```

## Use PMML in Scala or Java
See the [PMML4S](https://github.com/autodeployai/pmml4s) project. _PMML4S_ is a PMML scoring library for Scala. It provides both Scala and Java Evaluator API for PMML.
Expand Down

0 comments on commit d8f4016

Please sign in to comment.