Description
openedon Jul 30, 2019
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.