Giter Club home page Giter Club logo

Comments (9)

hcho3 avatar hcho3 commented on July 28, 2024 1

@rspadim It is the job of Treelite contributors to support Catboost, not Catboost contributors. I think you should close catboost/catboost#721.

Also re-opening this issue, as a reminder that we should support Catboost

from treelite.

hcho3 avatar hcho3 commented on July 28, 2024

@rspadim Are you familiar with how Catboot saves models?

from treelite.

rspadim avatar rspadim commented on July 28, 2024

there're some types, and very interesting since some are wellknown formats (standards)
i will point it here, and try to upload some samples
https://github.com/catboost/catboost/blob/master/catboost/libs/model/model.cpp#L174

from treelite.

rspadim avatar rspadim commented on July 28, 2024

well... now i know that it can export to python and c++ too

https://github.com/catboost/tutorials/blob/7897e65888889f559715bf0da1222a9b6dbc9d6b/apply_model/model_export_as_cpp_code_tutorial.md

https://github.com/catboost/tutorials/blob/7897e65888889f559715bf0da1222a9b6dbc9d6b/apply_model/model_export_as_python_code_tutorial.md

sorry my fault

from treelite.

hcho3 avatar hcho3 commented on July 28, 2024

@rspadim It may be still beneficial to add Catboost support in Treelite, if you'd like to generate pure C code without external dependency. That said, closing for now.

from treelite.

rspadim avatar rspadim commented on July 28, 2024

an exampel to create models:

from sklearn.datasets import load_boston
X, y = load_boston(return_X_y=True)
print('dimensions of X = {}'.format(X.shape))
print('dimensions of y = {}'.format(y.shape))

from catboost import CatBoost
model = CatBoost()
model.fit(X, y)
for i in ['cpp', 'python', 'json', 'cbm', 'onnx', 'coreml']:
    print(i)
    model.save_model(fname="teste.catboost." + i, format=i)
print("hello")

from treelite.

rspadim avatar rspadim commented on July 28, 2024

hi @hcho3 , yes i agree with you, pure C is the best think treelite have, it's very intuitive to port to any language

from treelite.

rspadim avatar rspadim commented on July 28, 2024

Nice, reference to create treelite support

https://github.com/catboost/catboost/blob/6ec9193d0cbb9a8712bd8fe434b823f30c4ee875/catboost/libs/model/model.cpp#L164

https://github.com/catboost/catboost/tree/15712cfa704413d51618455326c30f5764956be5/catboost/libs/model/model_export

cpp might be easy to port

from treelite.

hcho3 avatar hcho3 commented on July 28, 2024

Closing in favor of #377

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.