Open wil70 opened 1 year ago
I'm looking for something where I can load first the model from LightGBM (C++/CLI file) and then I will receive a bunch of request at a high frequency and so I can just query quickly the booster for a prediction
something simple like
// initialize Once
Booster booster = new Booster(@"my model from LightGBM CLI");
// Hundreds of request
double[] desiredOutput = null;
// var inputData = loadInputs(@"my testing data", out desiredOutput);
var inputData = List<double[]>() // data from hundreds of requests every few minutes
var prediction = booster.Predict(inputData);
Console.WriteLine("Prediction: " + prediction);
Console.ReadLine();
Could you please provide guidance on how to do it? I'm still Jr at c++ ;)
Thank you, Wil
Hello,
I've successfully created a model using LightGBM CLI, specifically the C/C++ version. Now, I'm facing the task of performing predictions from a C# application. I've written the following code, but unfortunately, I'm encountering difficulties in getting it to work.
I've attempted various approaches, but having a simple example would be incredibly helpful.
Thank you in advance for your assistance.
Best regards, Wil