3 writes to _columns
Microsoft.ML.Data (3)
Transforms\Hashing.cs (3)
181_columns = columns; 195_columns = columns; 292_columns = new HashingEstimator.ColumnOptions[columnsLength];
32 references to _columns
Microsoft.ML.Data (32)
Transforms\Hashing.cs (32)
143internal IReadOnlyCollection<HashingEstimator.ColumnOptions> Columns => _columns; 182foreach (var column in _columns) 196var types = new DataViewType[_columns.Length]; 200for (int i = 0; i < _columns.Length; i++) 207types[i] = GetOutputType(input.Schema, _columns[i]); 210if (_columns[i].Combine) 214if (_columns[i].MaximumNumberOfInverts == -1) 217invertHashMaxCount = _columns[i].MaximumNumberOfInverts; 239var ex = _columns[iinfo]; 248_keyValues = new VBuffer<ReadOnlyMemory<char>>[_columns.Length]; 249_kvTypes = new VectorDataViewType[_columns.Length]; 264Host.Assert(0 <= iinfo && iinfo < _columns.Length); 266input.Schema.TryGetColumnIndex(_columns[iinfo].InputColumnName, out int srcCol); 270if (_columns[iinfo].Combine) 295_columns[i] = new HashingEstimator.ColumnOptions(ColumnPairs[i].outputColumnName, ColumnPairs[i].inputColumnName, ctx); 311Host.Assert(_columns.Length == ColumnPairs.Length); 312foreach (var col in _columns) 315TextModelHelper.SaveAll(Host, ctx, _columns.Length, _keyValues); 354var mask = (1U << _columns[iinfo].NumberOfBits) - 1; 355uint seed = _columns[iinfo].Seed; 357if (_columns[iinfo].UseOrderedHashing) 455var ex = _columns[iinfo]; 468var mask = (1U << _columns[iinfo].NumberOfBits) - 1; 469uint seed = _columns[iinfo].Seed; 1320_srcTypes = new DataViewType[_parent._columns.Length]; 1321_dstTypes = new DataViewType[_parent._columns.Length]; 1324_dstTypes[i] = _parent.GetOutputType(inputSchema, _parent._columns[i]); 1368if (_parent._columns[iinfo].Combine) 1409var seed = _parent._columns[iinfo].Seed; 1410if (_parent._columns[iinfo].UseOrderedHashing) 1421var shiftValue = ctx.AddInitializer((ulong)(32 - _parent._columns[iinfo].NumberOfBits), false); 1459for (int iinfo = 0; iinfo < _parent._columns.Length; ++iinfo)