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
{{ message }}
Repository navigation
AutoML BinaryClassificationExperiment.Execute throws NullReferenceException in ConcatenateEntity.ToString when ColumnInformation names a column the preFeaturizer creates #7825
BinaryClassificationExperiment.Execute(trainData, columnInformation, preFeaturizer) throws a NullReferenceException from ConcatenateEntity.ToString when ColumnInformation names a column that the preFeaturizer creates. It does not report that the column does not exist.
To reproduce
varpre=ml.Transforms.Text.TokenizeIntoCharactersAsKeys("text__chars","text").Append(ml.Transforms.Text.ProduceNgrams("text__counts","text__chars",4));varinfo=newColumnInformation{LabelColumnName="label"};info.IgnoredColumnNames.Add("text");info.NumericColumnNames.Add("text__counts");// created by the preFeaturizerml.Auto().CreateBinaryClassificationExperiment(newBinaryExperimentSettings{MaxExperimentTimeInSeconds=10}).Execute(train,info,pre);
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.ML.AutoML.ConcatenateEntity.ToString()
at Microsoft.ML.AutoML.SweepablePipeline..ctor(...)
at Microsoft.ML.AutoML.SweepablePipeline.AppendEntity(...)
at Microsoft.ML.AutoML.SweepableExtension.Append(IEstimator`1 estimator, SweepablePipeline pipeline)
at Microsoft.ML.AutoML.BinaryClassificationExperiment.CreateBinaryClassificationPipeline(IDataView trainData, ColumnInformation columnInformation, IEstimator`1 preFeaturizer)
The featurizer is built from trainData's schema before the preFeaturizer runs, so a column the preFeaturizer adds is not found. If the preFeaturizer writes its output back under an existing column name (for example NormalizeLpNorm("text", …) with "text" listed as numeric), training works.
Expected behavior
One of:
the pipeline is built from the preFeaturizer's output schema, so ColumnInformation can name columns the preFeaturizer produces, or
Execute fails with a message naming the missing column.
Activity