2 writes to _ectx
Microsoft.ML.Transforms (2)
GroupTransform.cs (2)
220
_ectx
= ectx;
239
_ectx
= env.Register(LoaderSignature);
20 references to _ectx
Microsoft.ML.Transforms (20)
GroupTransform.cs (20)
221
_ectx
.AssertValue(inputSchema);
222
_ectx
.AssertNonEmpty(groupColumns);
223
_ectx
.AssertValue(keepColumns);
227
GroupColumnIndexes = GetColumnIds(inputSchema, groupColumns, x =>
_ectx
.ExceptUserArg(nameof(Options.GroupKeys), x));
230
KeepColumnIndexes = GetColumnIds(inputSchema, keepColumns, x =>
_ectx
.ExceptUserArg(nameof(Options.Columns), x));
240
_ectx
.AssertValue(inputSchema);
241
_ectx
.AssertValue(ctx);
252
_ectx
.CheckDecode(g > 0);
259
_ectx
.CheckDecode(k >= 0);
265
GroupColumnIndexes = GetColumnIds(inputSchema, _groupColumns,
_ectx
.Except);
266
KeepColumnIndexes = GetColumnIds(inputSchema, _keepColumns,
_ectx
.Except);
297
_ectx
.CheckValue(aggregatedValueType, nameof(aggregatedValueType), "Columns being aggregated must be primitive types such as string, float, or integer");
309
_ectx
.AssertValue(ctx);
317
_ectx
.AssertNonEmpty(_groupColumns);
321
_ectx
.AssertNonEmpty(name);
325
_ectx
.AssertValue(_keepColumns);
329
_ectx
.AssertNonEmpty(name);
355
_ectx
.Check(retrievedColumn.HasValue, errorMessage);
359
_ectx
.Check(colType is PrimitiveDataViewType, errorMessage);
374
_ectx
.Check(0 <= col && col < GroupColumnIndexes.Length + KeepColumnIndexes.Length);