Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while Exporting a LightGBM Model to C# #583

Open
wil70 opened this issue Sep 25, 2023 · 0 comments
Open

Issue while Exporting a LightGBM Model to C# #583

wil70 opened this issue Sep 25, 2023 · 0 comments

Comments

@wil70
Copy link

wil70 commented Sep 25, 2023

Hello,

I'm currently attempting to generate C# code from a LightGBM model that I possess. I've followed these steps:


import lightgbm as lgb
from pathlib import Path

booster = lgb.Booster(model_file='my model file')
c_sharp_code = m2c.export_to_c_sharp(booster.dump_model(), 'model.cs', 'MyModel')

However, I'm encountering an error during the export process:

NotImplementedError: Model 'builtins_dict' is not supported

Do you have any insights on how I can resolve this issue?

Thank you for your assistance.

Wil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant