Giter Club home page Giter Club logo

Comments (13)

hcho3 avatar hcho3 commented on July 28, 2024 1

@yupbank In fact, the link is quite relevant in that someone already suggested a Javascript backend.

from treelite.

terrytangyuan avatar terrytangyuan commented on July 28, 2024 1

Any progress on the R package yet? @hcho3

from treelite.

pommedeterresautee avatar pommedeterresautee commented on July 28, 2024

No R package planned?

from treelite.

hcho3 avatar hcho3 commented on July 28, 2024

@pommedeterresautee For now I'm pushing its addition to after the public release.

from treelite.

tqchen avatar tqchen commented on July 28, 2024

If there is native xgboost support, then likely we only need two functions, compile and predict, righ @hcho3 ?

from treelite.

hcho3 avatar hcho3 commented on July 28, 2024

@tqchen That's correct. The pred_transform function was referring to an internal interface. On the outside, you'd still have compile and predict. The latest commit adds the option to transform margins into probabilities.

I'm very close to finalizing Python interface (probably tonight).

from treelite.

yupbank avatar yupbank commented on July 28, 2024

this might be interesting for you ?
i can make the template for xgboost actually

https://github.com/nok/sklearn-porter/blob/master/sklearn_porter/classifier/RandomForestClassifier/__init__.py

from treelite.

hcho3 avatar hcho3 commented on July 28, 2024

@yupbank This is interesting indeed. Thanks for the link. I really like their use of templates to support multiple back-end languages.

One issue with XGBoost is that XGBoost models don't expose their internal representations on Python side. So you'd need to write C code to interact with XGBoost.

from treelite.

headupinclouds avatar headupinclouds commented on July 28, 2024

@hcho3: Can you share any sample prediction times for the treelite compiled models vs their reference implementations? I'm very interested in how the XGBoost Boston Housing samples from the documentation performs, for example. I realize this may vary wildly depending on the model, parameters, and architecture, but it would be very interesting to see a few data points. Thanks!

UPDATE: 7d8b88e

from treelite.

pommedeterresautee avatar pommedeterresautee commented on July 28, 2024

Was thinking to it recently too...
On R you can compile C++ on fly with Rcpp, does it make sense with this package?
In that case it would be much more easier to perform than on Python (because everything required is already managed by R devtools)

from treelite.

pommedeterresautee avatar pommedeterresautee commented on July 28, 2024

The big point about reticulate is that you are forcing R users to have a working Python installation. Am I right?

from treelite.

terrytangyuan avatar terrytangyuan commented on July 28, 2024

@pommedeterresautee Yea, I think it might not worth using it then given this project is primarily based on C unlike Keras, etc.

from treelite.

hcho3 avatar hcho3 commented on July 28, 2024

I don't have a definite time estimate yet, but an R package is definitely on my to-do list. (In fact, that is why treelite was designed to accommodate random forests.) I've been lately busy writing a workshop paper on treelite. I'm not exactly familiar with R, so it may take some time to add R support.

from treelite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.