2 writes to _columns
Microsoft.ML.Data (2)
Transforms\TypeConverting.cs (2)
203
_columns
= columns.ToArray();
261
_columns
= new TypeConvertingEstimator.ColumnOptions[columnsLength];
25 references to _columns
Microsoft.ML.Data (25)
Transforms\TypeConverting.cs (25)
174
internal IReadOnlyCollection<TypeConvertingEstimator.ColumnOptions> Columns =>
_columns
.AsReadOnly();
220
for (int i = 0; i <
_columns
.Length; i++)
222
Host.Assert((InternalDataKind)(byte)
_columns
[i].OutputKind.ToInternalDataKind() ==
_columns
[i].OutputKind.ToInternalDataKind());
223
if (
_columns
[i].OutputKeyCount != null)
225
byte b = (byte)
_columns
[i].OutputKind;
228
ctx.Writer.Write(
_columns
[i].OutputKeyCount.Count ??
_columns
[i].OutputKind.ToInternalDataKind().ToMaxInt());
231
ctx.Writer.Write((byte)
_columns
[i].OutputKind);
290
_columns
[i] = new TypeConvertingEstimator.ColumnOptions(ColumnPairs[i].outputColumnName, kind.ToDataKind(), ColumnPairs[i].inputColumnName, keyCount);
396
_types = new DataViewType[_parent.
_columns
.Length];
397
_srcCols = new int[_parent.
_columns
.Length];
398
for (int i = 0; i < _parent.
_columns
.Length; i++)
402
if (!CanConvertToType(Host, srcCol.Type, _parent.
_columns
[i].OutputKind.ToInternalDataKind(), _parent.
_columns
[i].OutputKeyCount,
407
_parent.
_columns
[i].InputColumnName, srcCol.Type, itemType);
436
var result = new DataViewSchema.DetachedColumn[_parent.
_columns
.Length];
437
for (int i = 0; i < _parent.
_columns
.Length; i++)
462
result[i] = new DataViewSchema.DetachedColumn(_parent.
_columns
[i].Name, _types[i], builder.ToAnnotations());
481
for (int iinfo = 0; iinfo < _parent.
_columns
.Length; ++iinfo)
483
string inputColumnName = _parent.
_columns
[iinfo].InputColumnName;
486
ctx.RemoveColumn(_parent.
_columns
[iinfo].Name, false);
491
ctx.AddIntermediateVariable(_types[iinfo], _parent.
_columns
[iinfo].Name)))
493
ctx.RemoveColumn(_parent.
_columns
[iinfo].Name, true);
505
var t = _parent.
_columns
[iinfo].OutputKind.ToInternalDataKind().ToType();