You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
System.InvalidOperationException: 'LightGBM Error, code is -1 #5431
I get this error: System.InvalidOperationException: 'LightGBM Error, code is -1, error message is 'Unknown importance type: only support split=0 and gain=1'.'
This error can be reproduced by an example. I just used the example in docs.microsoft.com and able to reproduce it.
Thank you for opening this Issue. I replicated the LightGBM code sample you linked in a fresh new .NET Console App project, and successfully ran the example given. I did not see any failures on the var model = pipeline.Fit(trainData); you said. I installed the Microsoft.ML (1.5.2) and Microsoft.ML.LightGbm (1.5.2) NuGet packages. I believe you may not have the latest Microsoft.ML and/or Microsoft.ML.LightGbm NuGet packages installed, please confirm you have v1.5.2 for both.
I have zipped the working repro I mention above here. Please unzip the repro I've attach and let me know whether or not it works. Issue5431.zip
Feel free to reopen this issue if the repro I've linked is not working. Thanks.
Hi @mstfbl
I updated the comment. I am using Microsoft.ML (1.5.2) and LightGbm (3.0.0). My sample has installed these versions as well.
I do not have permission to reopen this issue. Please open it again.
ghost locked as resolved and limited conversation to collaborators on Mar 17, 2022
Activity
gharibkhani commentedon Oct 16, 2020
@Lynx1820 would you please look at this and let me know if there is any plan to fix this issue.
mstfbl commentedon Oct 20, 2020
Hi @gharibkhani ,
Thank you for opening this Issue. I replicated the LightGBM code sample you linked in a fresh new .NET Console App project, and successfully ran the example given. I did not see any failures on the
var model = pipeline.Fit(trainData);you said. I installed theMicrosoft.ML (1.5.2)andMicrosoft.ML.LightGbm (1.5.2)NuGet packages. I believe you may not have the latestMicrosoft.MLand/orMicrosoft.ML.LightGbmNuGet packages installed, please confirm you have v1.5.2 for both.I have zipped the working repro I mention above here. Please unzip the repro I've attach and let me know whether or not it works.
Issue5431.zip
Feel free to reopen this issue if the repro I've linked is not working. Thanks.
gharibkhani commentedon Oct 20, 2020
Hi @mstfbl
I updated the comment. I am using Microsoft.ML (1.5.2) and LightGbm (3.0.0). My sample has installed these versions as well.
I do not have permission to reopen this issue. Please open it again.