Skip to content

Commit

Permalink
Adding documentation and RELEASE NOTES
Browse files Browse the repository at this point in the history
  • Loading branch information
lucagiovagnoli committed Apr 29, 2020
1 parent b872d21 commit 502cbef
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
### New Features
- Scikit-learn support for Multinomial Logistic Regression
- Support for min/max values other than defaults (i.e. 0.0 and 1.0) in MinMaxScalerModel
- Suppor for custom transformers (StringMap) in Pyspark
- Support for custom transformers (StringMap) in Pyspark
- Support for a performant implementation of the XGboost runtime (XGboost Predictor)

### Bug Fixes
- Fix XGBoost sparse vector support
Expand Down
23 changes: 23 additions & 0 deletions mleap-xgboost-runtime/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# MLeap XGBoost Runtime

We provide two implementation of XGboost for use at runtime:
- XGboost4j (from `ml.dmlc.xgboost4j`): this is the official C++ implementation.
- XGBoost-Predictor (from `biz.k11i.xgboost-predictor`): this is a much faster implementation written directly in Java.

By default, MLeap Bundles are de-serialized into XGboost4j Booster objects.
In order to use the Predictor implementation, you may:

1. Create a `resources/reference.conf` file in your project, like this:
```
ml.combust.mleap.xgboost.ops = [
"ml.combust.mleap.xgboost.runtime.bundle.ops.XGBoostPredictorClassificationOp",
"ml.combust.mleap.xgboost.runtime.bundle.ops.XGBoostRegressionOp"
]
```
2. add this to your project's pom file:
```
<!-- Append our reference.conf into MLeap's reference.conf so our Ops are registered -->
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>reference.conf</resource>
</transformer>
```

0 comments on commit 502cbef

Please sign in to comment.