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