Open boneatjp opened 8 months ago
I am having the same problem with LightGBM 4.4.0 multiclass classification using .Net framework 4.8.1
Well, a few days ago, ML.NET 4.0.0-preview.24378.1 had been released. I've tried with LightGBM 4.5.0 but got still the same error. I hope ML.NET 4.0.0 will use LightGBM 4.5.0 or later version or maybe at least LightGBM 4.0.0.
System Information (please complete the following information):
Describe the bug
System.AccessViolationException HResult=0x80004003 Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
To Reproduce Steps to reproduce the behavior:
MLContext mlContext; string sampleData = "taxi-fare-full.csv"; mlContext = new MLContext();
// Infer column information ColumnInferenceResults columnInference = mlContext.Auto() .InferColumns(sampleData, labelColumnName: "fare_amount", groupColumns: false); // Create text loader TextLoader loader = mlContext.Data.CreateTextLoader(columnInference.TextLoaderOptions);
// Load data into IDataView IDataView data = loader.Load(sampleData);
TrainTestData trainValidationData = mlContext.Data.TrainTestSplit(data, testFraction: 0.2);
SweepablePipeline pipeline = mlContext.Auto() .Featurizer(data, columnInformation: columnInference.ColumnInformation) .Append(mlContext.Auto() .Regression(labelColumnName: columnInference.ColumnInformation.LabelColumnName));
AutoMLExperiment experiment = mlContext.Auto().CreateExperiment();
var regressionMetric = RegressionMetric.RootMeanSquaredError; experiment .SetPipeline(pipeline) .SetRegressionMetric(regressionMetric, labelColumn: columnInference.ColumnInformation.LabelColumnName) .SetTrainingTimeInSeconds(100) // Training time in sec .SetDataset(trainValidationData);
// Log experiment trials mlContext.Log += (_, e) => { if (e.Source.Equals("AutoMLExperiment")) { Console.WriteLine(e.RawMessage); } };
TrialResult experimentResults = await experiment.RunAsync();