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)
174internal IReadOnlyCollection<TypeConvertingEstimator.ColumnOptions> Columns => _columns.AsReadOnly(); 220for (int i = 0; i < _columns.Length; i++) 222Host.Assert((InternalDataKind)(byte)_columns[i].OutputKind.ToInternalDataKind() == _columns[i].OutputKind.ToInternalDataKind()); 223if (_columns[i].OutputKeyCount != null) 225byte b = (byte)_columns[i].OutputKind; 228ctx.Writer.Write(_columns[i].OutputKeyCount.Count ?? _columns[i].OutputKind.ToInternalDataKind().ToMaxInt()); 231ctx.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]; 398for (int i = 0; i < _parent._columns.Length; i++) 402if (!CanConvertToType(Host, srcCol.Type, _parent._columns[i].OutputKind.ToInternalDataKind(), _parent._columns[i].OutputKeyCount, 407_parent._columns[i].InputColumnName, srcCol.Type, itemType); 436var result = new DataViewSchema.DetachedColumn[_parent._columns.Length]; 437for (int i = 0; i < _parent._columns.Length; i++) 462result[i] = new DataViewSchema.DetachedColumn(_parent._columns[i].Name, _types[i], builder.ToAnnotations()); 481for (int iinfo = 0; iinfo < _parent._columns.Length; ++iinfo) 483string inputColumnName = _parent._columns[iinfo].InputColumnName; 486ctx.RemoveColumn(_parent._columns[iinfo].Name, false); 491ctx.AddIntermediateVariable(_types[iinfo], _parent._columns[iinfo].Name))) 493ctx.RemoveColumn(_parent._columns[iinfo].Name, true); 505var t = _parent._columns[iinfo].OutputKind.ToInternalDataKind().ToType();