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