dotnet / machinelearning

ML.NET is an open source and cross-platform machine learning framework for .NET.
https://dot.net/ml
MIT License
9k stars 1.88k forks source link

Issue when providing custom gains to LightGbmRanking #5366

Closed JulioAlbinatiCortez closed 4 years ago

JulioAlbinatiCortez commented 4 years ago

System information

Issue

Source code / logs

Please paste or attach the code or logs or traces that would be helpful to diagnose the issue you are reporting.

michaelgsharp commented 4 years ago

The way to pass in arrays to the ml.net command line is to repeat the option multiple times, the same way you are passing in col to the TextLoader. So for the CustomGains, you would do it like this:

tr=LightGBMRanking{iter=500 gains=0 gains=82 gains=189 gains=435 gains=1000}

I have tested and confirmed that it is working, so I will close this for now. If you have any further issues please feel free to reopen the ticket. Thanks!

JulioAlbinatiCortez commented 4 years ago

It worked! Thanks for the support :)