
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
ai.bleckwen:xgboost-predictor4j
Advanced tools
Bleckwen JVM implementation of XGBoost Predictor
Features
libgomp
)predictApproxContrib
) and slower SHAP algorithm (predictContrib
)Limitations
rewind
is not implemented).
The impact is negligeable as it happens in very rare situation (a comparison with XGBoots4J performed on 1_000_000 random records did not show any discrepancy)Release History
Integration
<dependency>
<groupId>ai.bleckwen</groupId>
<artifactId>xgboost-predictor4j</artifactId>
<version>1.0</version>
</dependency>
libraryDependencies += "ai.bleckwen" % "xgboost-predictor4j" % "1.0"
The package was build and published wih Scala 2.12.13 but you can rebuild it with Scala 2.13 by using Maven profile scala213
or by using the Makefile goal.
Using Predictor in Scala
val bytes = org.apache.commons.io.IOUtils.toByteArray(this.getClass.getResourceAsStream("/path_to.model"))
val predictor = Predictor(bytes)
val denseArray = Array(0.23, 0.0, 1.0, 0.5)
val score = predictor.predict(denseArray).head
Using Predictor in Java
byte[] bytes = org.apache.commons.io.IOUtils.toByteArray(this.getClass().getResourceAsStream("/path_to.model"));
Predictor predictor = (new PredictorBuilder()).build(bytes) ;
double[] denseArray = {0, 0, 32, 0, 0, 16, -8, 0, 0, 0};
double score = predictor.predict(denseArray)[0];
Benchmarks
See BENCH.md
FAQs
Bleckwen JVM implementation of XGBoost Predictor
We found that ai.bleckwen:xgboost-predictor4j demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.