System information
windows 10 version 1803
NET Version (3.1.300):
AutoML version : 0.17.1
(also tested on version 0.14.0)
Issue
I am trying to use AutoML for the first time. but I get IndexOutOfRangeException on execute method call.
Source code / logs
static void Main(string[] args)
{
MLContext mlContext = new MLContext();
IDataView trainDataView = mlContext.Data.LoadFromTextFile("input.csv", hasHeader: true);
var experimentSettings = new RegressionExperimentSettings();
experimentSettings.MaxExperimentTimeInSeconds = 100;
RegressionExperiment experiment = mlContext.Auto().CreateRegressionExperiment(experimentSettings);
ExperimentResult experimentResult = experiment.Execute(trainDataView, "Withdrawal");
RegressionMetrics metrics = experimentResult.BestRun.ValidationMetrics;
Console.WriteLine($"R-Squared: {metrics.RSquared:0.##}");
Console.WriteLine($"Root Mean Squared Error: {metrics.RootMeanSquaredError:0.##}");
}
Error:
Unhandled exception. System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
at Microsoft.ML.AutoML.CrossValSummaryRunner1.Run(SuggestedPipeline pipeline, DirectoryInfo modelDirectory, Int32 iterationNum) at Microsoft.ML.AutoML.Experiment2.Execute()
at Microsoft.ML.AutoML.ExperimentBase2.Execute(ColumnInformation columnInfo, DatasetColumnInfo[] columns, IEstimator1 preFeaturizer, IProgress1 progressHandler, IRunner1 runner)
at Microsoft.ML.AutoML.ExperimentBase2.ExecuteCrossValSummary(IDataView[] trainDatasets, ColumnInformation columnInfo, IDataView[] validationDatasets, IEstimator1 preFeaturizer, IProgress1 progressHandler) at Microsoft.ML.AutoML.ExperimentBase2.Execute(IDataView trainData, ColumnInformation columnInformation, IEstimator1 preFeaturizer, IProgress1 progressHandler)
at Microsoft.ML.AutoML.ExperimentBase2.Execute(IDataView trainData, String labelColumnName, String samplingKeyColumn, IEstimator1 preFeaturizer, IProgress`1 progressHandler)
at FunWithMlnet.Program.Main(String[] args) in C:\Users\User\source\repos\FunWithWithdrawalsData\FunWithMlnet\Program.cs:line 18
System information
windows 10 version 1803
NET Version (3.1.300):
AutoML version : 0.17.1
(also tested on version 0.14.0)
Issue
I am trying to use AutoML for the first time. but I get IndexOutOfRangeException on execute method call.
Source code / logs
static void Main(string[] args)
{
MLContext mlContext = new MLContext();
IDataView trainDataView = mlContext.Data.LoadFromTextFile("input.csv", hasHeader: true);
var experimentSettings = new RegressionExperimentSettings();
experimentSettings.MaxExperimentTimeInSeconds = 100;
RegressionExperiment experiment = mlContext.Auto().CreateRegressionExperiment(experimentSettings);
ExperimentResult experimentResult = experiment.Execute(trainDataView, "Withdrawal");
RegressionMetrics metrics = experimentResult.BestRun.ValidationMetrics;
Console.WriteLine($"R-Squared: {metrics.RSquared:0.##}");
Console.WriteLine($"Root Mean Squared Error: {metrics.RootMeanSquaredError:0.##}");
}
Error:
Unhandled exception. System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
at Microsoft.ML.AutoML.CrossValSummaryRunner
1.Run(SuggestedPipeline pipeline, DirectoryInfo modelDirectory, Int32 iterationNum) at Microsoft.ML.AutoML.Experiment2.Execute()at Microsoft.ML.AutoML.ExperimentBase
2.Execute(ColumnInformation columnInfo, DatasetColumnInfo[] columns, IEstimator1 preFeaturizer, IProgress1 progressHandler, IRunner1 runner)at Microsoft.ML.AutoML.ExperimentBase
2.ExecuteCrossValSummary(IDataView[] trainDatasets, ColumnInformation columnInfo, IDataView[] validationDatasets, IEstimator1 preFeaturizer, IProgress1 progressHandler) at Microsoft.ML.AutoML.ExperimentBase2.Execute(IDataView trainData, ColumnInformation columnInformation, IEstimator1 preFeaturizer, IProgress1 progressHandler)at Microsoft.ML.AutoML.ExperimentBase
2.Execute(IDataView trainData, String labelColumnName, String samplingKeyColumn, IEstimator1 preFeaturizer, IProgress`1 progressHandler)at FunWithMlnet.Program.Main(String[] args) in C:\Users\User\source\repos\FunWithWithdrawalsData\FunWithMlnet\Program.cs:line 18