Skip to content

System.ArgumentOutOfRangeException : Could not find input column 'SamplingKeyColumn' #4048

Closed

Description

System information

  • Win10/distro:
  • .NET Version Core 2.1:

Issue

When I am running my RefitBestPipeline function. i.e my function to run my model over the entire data I got this error.

Message: System.ArgumentOutOfRangeException : Could not find input column 'SamplingKeyColumn'
Parameter name: inputSchema

This is some internal error I am calling the same load and transfer function that I used to build my model.

Source code / logs

private ITransformer RefitBestPipeline(ExperimentResult experimentResult)
{
DebugHelper.WriteHeader("=============== Re-fitting best pipeline ===============");
//var textLoader = mlContext.Data.CreateTextLoader(columnInference.TextLoaderOptions);
//_trainDataView = _mlContext.Data.LoadFromEnumerable(trainingCollection);
//_testDataView = _mlContext.Data.LoadFromEnumerable(testCollection);

        //IEnumerable<T> allData = trainingCollection.Concat(testCollection);
        //IDataView allDataView = _mlContext.Data.LoadFromEnumerable<T>(testCollection);          
        // Generate the dataview for all of the data
        LoadData(_modelInput.TrainingCollection);
        TransformData();

        //var combinedDataView = textLoader.Load(new MultiFileSource(TrainDataPath, TestDataPath));
        RunDetail<RegressionMetrics> bestRun = experimentResult.BestRun;

        return bestRun.Estimator.Fit(_trainDataView); // pass in the data view for all of the data.
    }

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

P1Priority of the issue for triage purpose: Needs to be fixed soon.loadsaveBugs related loading and saving data or modelsneed infoThis issue needs more info before triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions