Skip to content

Issue while Exporting a LightGBM Model to C#  #583

Open
@wil70

Description

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

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions