1 write to _parent
Microsoft.ML.Data (1)
Transforms\KeyToVector.cs (1)
246_parent = parent;
23 references to _parent
Microsoft.ML.Data (23)
Transforms\KeyToVector.cs (23)
248_types = new VectorDataViewType[_parent.ColumnPairs.Length]; 255for (int i = 0; i < _parent.ColumnPairs.Length; i++) 259if (_parent._columns[i].OutputCountVector || valueCount == 1) 277var infos = new ColInfo[_parent.ColumnPairs.Length]; 278for (int i = 0; i < _parent.ColumnPairs.Length; i++) 280if (!inputSchema.TryGetColumnIndex(_parent.ColumnPairs[i].inputColumnName, out int colSrc)) 281throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName); 283_parent.CheckInputColumn(inputSchema, i, colSrc); 284infos[i] = new ColInfo(_parent.ColumnPairs[i].outputColumnName, _parent.ColumnPairs[i].inputColumnName, type); 291var result = new DataViewSchema.DetachedColumn[_parent.ColumnPairs.Length]; 292for (int i = 0; i < _parent.ColumnPairs.Length; i++) 294InputSchema.TryGetColumnIndex(_parent.ColumnPairs[i].inputColumnName, out int colIndex); 298result[i] = new DataViewSchema.DetachedColumn(_parent.ColumnPairs[i].outputColumnName, _types[i], builder.ToAnnotations()); 322if (_parent._columns[iinfo].OutputCountVector || srcType is PrimitiveDataViewType) 344if (!_parent._columns[iinfo].OutputCountVector && srcValueCount > 0) 353if (!_parent._columns[iinfo].OutputCountVector || srcType is PrimitiveDataViewType) 458if (_parent._columns[iinfo].OutputCountVector) 509Host.Assert(_parent._columns[iinfo].OutputCountVector); 555Host.Assert(!_parent._columns[iinfo].OutputCountVector); 677if (!(_parent._columns[iinfo].OutputCountVector || srcVectorType.Size == 1)) 717var isOutputCountVector = _parent._columns[iinfo].OutputCountVector; 727if (_parent._columns[iinfo].OutputCountVector && info.TypeSrc is VectorDataViewType)