You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
The following code runs without errors:
However, the following code fails with schema mismatch exception:
This may also be related to issue #1969 .
The text was updated successfully, but these errors were encountered: