1 write to Group
Microsoft.ML.Core (1)
Data\RoleMappedSchema.cs (1)
183Group = cols[0];
30 references to Group
Microsoft.ML.Data (19)
Evaluators\RankingEvaluator.cs (11)
114var t = schema.Group.Value.Type; 118"group", schema.Group.Value.Name, "Key", t.ToString()); 126return i => i == schema.Group.Value.Index || pred(i); 139Host.CheckParam(data.Schema.Group.HasValue, nameof(data), "Schema must contain a group column"); 142data.Schema.Label.Value.Name, scoreInfo.Name, data.Schema.Group.Value.Name, _truncationLevel, _labelGains); 456Contracts.Assert(schema.Group.HasValue); 462_newGroupDel = RowCursorUtils.GetIsNewGroupDelegate(row, schema.Group.Value.Index); 468ValueGetter<StringBuilder> groupIdBuilder = RowCursorUtils.GetGetterAsStringBuilder(row, schema.Group.Value.Index); 896var groupIdCol = EvaluateUtils.GetColName(_groupIdCol, schema.Group, DefaultColumnNames.GroupId); 944Host.CheckParam(schema.Group.HasValue, nameof(schema), "Data must contain a group column"); 947yield return schema.Group.Value.Name;
Training\TrainerUtils.cs (8)
215if (!data.Schema.Group.HasValue) 217var col = data.Schema.Group.Value; 239if ((opt & CursOpt.Group) != 0 && data.Schema.Group.HasValue) 240columns.Add(data.Schema.Group.Value); 335var col = schema.Group; 435if (tschema.Group?.Name is string gname && gname != DefaultColumnNames.GroupId) 437if (tschema.Group?.Name is string iname && iname != DefaultColumnNames.Item) 439if (tschema.Group?.Name is string uname && uname != DefaultColumnNames.User)
Microsoft.ML.EntryPoints (1)
PermutationFeatureImportance.cs (1)
257Contracts.Check(roleMappedData.Schema.Group != null, "Group ID column not found.");
Microsoft.ML.FastTree (6)
FastTree.cs (6)
1354if (examples.Schema.Group?.Name is string groupName) 1366int groupIdx = AddColumnIfNeeded(examples.Schema.Group, toTranspose); 1618ch.Warning("This is not ranking problem, Group Id '{0}' column will be ignored", examples.Schema.Group.Value.Name); 1824hasGroup = _data.Schema.Group != null; 1831if (_data.Schema.Group != null) 1832ch.Warning("This is not ranking problem, Group Id '{0}' column will be ignored", _data.Schema.Group.Value.Name);
Microsoft.ML.LightGbm (4)
LightGbmRankingTrainer.cs (3)
256if (!data.Schema.Group.HasValue) 257throw ch.ExceptValue(nameof(data.Schema.Group), "Group column is missing."); 258var groupCol = data.Schema.Group.Value;
LightGbmTrainerBase.cs (1)
775ch.Check(factory.Data.Schema.Group != null, "The data for ranking task should have group field.");