Skip to content

CrossValidation Macros stops working in 1.5.0 #5221

@ganik

Description

@ganik

ML.NET 1.5.0

Have NimbusML (built with ML.NET 1.5.0, here is PR that does this )
Run the tests in test.cv
test_default_label2 fails with error:
Error: *** System.InvalidOperationException: 'Column 'GroupId' not found' StackTrace: at Microsoft.ML.EntryPoints.TrainerEntryPointsUtils.FindColumn(IExceptionContext ectx, DataViewSchema schema, Optional1 value) at Microsoft.ML.EntryPoints.TrainerEntryPointsUtils.Train[TArg,TOut](IHost host, TArg input, Func1 createTrainer, Func1 getLabel, Func1 getWeight, Func1 getGroup, Func1 getName, Func`1 getCustom, ICalibratorTrainerFactory calibrator, Int32 maxCalibrationExamples)
at Microsoft.ML.Trainers.LightGbm.LightGbm.TrainRanking(IHostEnvironment env, Options input)

This is a regression from ML.NET 1.5.0.preview2

I did some debugging, it appears that once macros is expanded ColumnSelector Transform drops GroupId. ColumnSelector appears to be added by Macros expansion.

Metadata

Metadata

Labels

P0Priority of the issue for triage purpose: IMPORTANT, needs to be fixed right away.bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions