Closed
Description
The following code runs without errors:
var loader = ml.Data.CreateTextLoader<InputData>(hasHeader: true, dataSample: file);
var data = loader.Load(file);
// Pipeline.
var pipeline = ml.BinaryClassification.Trainers.GeneralizedAdditiveModels();
// Train.
var model = pipeline.Fit(data);
However, the following code fails with schema mismatch exception:
var loader = ml.Data.CreateTextLoader<InputData>(hasHeader: true, dataSample: file);
// Define the same pipeline starting with the loader.
var pipeline = loader.Append(ml.BinaryClassification.Trainers.GeneralizedAdditiveModels());
// Train
var model = pipeline.Fit(file);
This may also be related to issue #1969 .