Skip to content

LightGbm System.InvalidOperationException after the latest update #5382

Closed

Description

@evo11x

System information

  • Win10/x64
  • .Net 4.8

Issue

  • It crashes in this line var model = pipeline.Fit(trainData);
  • I get this error: System.InvalidOperationException: 'LightGBM Error, code is -1, error message is 'Unknown importance type: only support split=0 and gain=1'.'

With the previous version everything worked fine and nothing was modified in my source code since it worked.

This is my gbm setting
.Append(mlContext.Regression.Trainers.LightGbm("PercentPredict", "Features",null,null,null,null,200));

Activity

  1. changed the title [-]LightGbm error after the latest update[/-] [+]LightGbm System.InvalidOperationException after the latest update[/+] on Sep 2, 2020
  2. self-assigned this
    on Sep 2, 2020
  3. mstfbl commented on Sep 2, 2020

    @mstfbl
    Contributor

    Hi @evo11x ,

    Thank you for letting us know about this issue. Can you please attach a repro with your full code and dataset with which you obtained this error? We need to see these to fully debug your issue. Thanks.

  4. kere-nel commented on Sep 8, 2020

    @kere-nel
    Contributor

    Hi @evo11x ,

    Please reopen if you're able to provide us with more information.

  5. gharibkhani commented on Oct 12, 2020

    @gharibkhani

    Hi @Lynx1820 ,

    This error can be reproduced by any example. I just used the example in docs.microsoft.com and able to reproduce it.

    https://docs.microsoft.com/en-us/dotnet/api/microsoft.ml.lightgbmextensions.lightgbm?view=ml-dotnet

    I created a console app and you can access it from the link below:

    https://drive.google.com/drive/folders/1-wc04CM75-IGoxjRAniDuhqI-zrHTWwM?usp=sharing

    I created a new issue #5431

  6. ghost locked as resolved and limited conversation to collaborators on Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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