Skip to content

Issue while Exporting a LightGBM Model to C#  #583

@wil70

Description

@wil70

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

Metadata

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