google / yggdrasil-decision-forests

A library to train, evaluate, interpret, and productionize decision forest models such as Random Forest and Gradient Boosted Decision Trees.
https://ydf.readthedocs.io/
Apache License 2.0
498 stars 53 forks source link

NPM package for Javascript API #94

Closed akshaan closed 5 months ago

akshaan commented 6 months ago

I'm using the Javascript API to run a decision forest model in a NodeJS server, and would like to include the code as an NPM dependency instead of bundling the minified JS and WASM files directly with the server source code. Are there any plans to publish an NPM package for this?

achoum commented 5 months ago

Yes, the publication of an npm is a work in progress.

I've pushed the current draft to npmjs. You can try it at:

https://www.npmjs.com/package/yggdrasil-decision-forests

Let me know if this works for you :)

akshaan commented 5 months ago

@achoum This worked perfectly, thanks!