1 write to Indices
Microsoft.ML.DataView (1)
VBufferEditor.cs (1)
123
Indices
= !isDense || requireIndicesOnDense ? _indices.AsSpan(0, physicalValuesCount) : default;
99 references to Indices
Microsoft.ML.Core (22)
Utilities\VBufferUtils.cs (22)
317
if (dstValuesCount > 0 && Utils.TryFindIndexSorted(editor.
Indices
, 0, dstValuesCount, slot, out idx))
342
editor.
Indices
.Slice(idx, sliceLength).CopyTo(editor.
Indices
.Slice(idx + 1));
346
editor.
Indices
[idx] = slot;
417
Utils.FillIdentity(newIndicesEditor.
Indices
, denseCount);
434
editor.
Indices
.Slice(lim, sliceLength).CopyTo(editor.
Indices
.Slice(denseCount));
439
editor.
Indices
[ii] = ii;
481
editor.
Indices
[j] = i;
694
manip(editor.
Indices
[i] = srcIndices[i], srcValues[i], ref editor.Values[i]);
750
var indices = editor.
Indices
;
851
editor.
Indices
[dI] = sI++;
860
srcIndices.CopyTo(editor.
Indices
);
907
srcIndices.CopyTo(editor.
Indices
);
911
editor.
Indices
[ii] = i;
997
editor.
Indices
[jj] = j;
1005
editor.
Indices
[jj] = dstIndices[jj];
1081
editor.
Indices
[kk] = i;
1089
editor.
Indices
[kk] = i;
1097
editor.
Indices
[kk] = j;
1150
Span<int> indices = editor.
Indices
;
1254
Span<int> indices = editor.
Indices
;
Microsoft.ML.Core.Tests (12)
UnitTests\TestVBuffer.cs (12)
555
var indices = editor.
Indices
;
561
for (int i = 0; i < editor.
Indices
.Length; ++i)
1015
var indices = editor.
Indices
;
1121
bEditor.
Indices
[i] = a.GetIndices()[i];
1130
bEditor.
Indices
[i] = a.GetIndices()[bEditor.
Indices
[i]];
1147
Utils.Shuffle(rgen, aEditor.
Indices
);
1148
aEditor.
Indices
.Slice(boundary).CopyTo(bEditor.
Indices
);
1150
GenericSpanSortHelper<int>.Sort(aEditor.
Indices
, 0, boundary);
1151
GenericSpanSortHelper<int>.Sort(bEditor.
Indices
, 0, bEditor.
Indices
.Length);
Microsoft.ML.Data (29)
Data\BufferBuilder.cs (1)
462
_indices.AsSpan(0, _count).CopyTo(editor.
Indices
);
Data\RowCursorUtils.cs (1)
291
srcIndices.CopyTo(editor.
Indices
);
DataLoadSave\Binary\Codecs.cs (1)
1110
.CopyTo(editor.
Indices
);
DataLoadSave\Text\TextLoaderParser.cs (1)
433
_indices.AsSpan(0, _count).CopyTo(editor.
Indices
);
DataView\CacheDataView.cs (1)
1406
_indices.CopyTo(_indexBoundaries[idx], editor.
Indices
, indexCount);
DataView\Transposer.cs (2)
1209
_inputValue.GetIndices().Slice(smin, scount).CopyTo(editor.
Indices
);
1214
editor.
Indices
[i] -= min;
Deprecated\Instances\HeaderSchema.cs (1)
62
indexList.CopyTo(editor.
Indices
);
Deprecated\Vector\VBufferMathUtils.cs (2)
127
src.GetIndices().CopyTo(editor.
Indices
);
301
var indices = editor.
Indices
;
Deprecated\Vector\VectorUtils.cs (4)
121
aEditor.
Indices
[count] = pair.Key;
128
aEditor.
Indices
[count] = pair.Key;
152
if (!aEditor.
Indices
.IsEmpty)
153
GenericSpanSortHelper<int>.Sort(aEditor.
Indices
, aEditor.Values, 0, newCount);
Evaluators\EvaluatorUtils.cs (1)
718
editor.
Indices
[j] = srcIndices[j];
Scorers\FeatureContributionCalculation.cs (1)
239
var indices = contributions.IsDense ? Utils.GetIdentityPermutation(contributions.Length) : editor.
Indices
;
Transforms\ColumnConcatenatingTransformer.cs (3)
753
editor.
Indices
[count++] = offset + i;
762
editor.
Indices
[count++] = offset + bufferIndices[i];
772
editor.
Indices
[count++] = offset;
Transforms\Hashing.cs (4)
1053
src.GetIndices().CopyTo(editor.
Indices
);
1107
src.GetIndices().CopyTo(editor.
Indices
);
1178
srcIndices.CopyTo(editor.
Indices
);
1242
srcIndices.CopyTo(editor.
Indices
);
Transforms\KeyToValue.cs (1)
452
editor.
Indices
[islotDst++] = srcIndices[islotSrc];
Transforms\KeyToVector.cs (3)
491
editor.
Indices
[0] = (int)src - 1;
590
editor.
Indices
[count++] = slot * size + (int)key;
603
editor.
Indices
[count++] = indices[islot] * size + (int)key;
Transforms\ValueMapping.cs (1)
923
src.GetIndices().CopyTo(editor.
Indices
);
Utilities\SlotDropper.cs (1)
180
editor.
Indices
[iiDst] = index - iOffset;
Microsoft.ML.DataView (6)
VBuffer.cs (2)
210
_indices.AsSpan(0, _count).CopyTo(editor.
Indices
);
254
editor.
Indices
[i] = _indices[i + copyMin] - sourceIndex;
VBufferEditor.cs (4)
74
/// <see cref="Values"/> (and <see cref="
Indices
"/> if the buffer is not dense).
104
/// Gets a value indicating whether a new <see cref="
Indices
"/> array was allocated.
130
/// Commits the edits and creates a new <see cref="VBuffer{T}"/> using the current <see cref="Values"/> and <see cref="
Indices
"/>.
142
/// of <see cref="Values"/> and, if sparse, <see cref="
Indices
"/>.
Microsoft.ML.Ensemble (2)
EnsembleUtils.cs (2)
75
editor.
Indices
[count] = i;
95
editor.
Indices
[count] = srcIndices[i];
Microsoft.ML.FastTree (3)
FastTree.cs (3)
1316
src.GetIndices().CopyTo(editor.
Indices
);
2537
editor.
Indices
[i] = _sparse[i].Key;
2540
Contracts.Assert(Utils.IsIncreasing(0, editor.
Indices
, count, length));
Microsoft.ML.StandardTrainers (3)
Standard\LogisticRegression\LogisticRegression.cs (1)
214
Contracts.Assert(editor.Values.Length >= BiasCount && (grad.IsDense || editor.
Indices
[BiasCount - 1] == BiasCount - 1));
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
272
Contracts.Assert(editor.Values.Length >= BiasCount && (grad.IsDense || editor.
Indices
[BiasCount - 1] == BiasCount - 1));
Standard\PoissonRegression\PoissonRegression.cs (1)
179
Contracts.Assert(editor.Values.Length >= BiasCount && (grad.IsDense || editor.
Indices
[BiasCount - 1] == BiasCount - 1));
Microsoft.ML.Transforms (22)
ExpressionTransformer.cs (5)
627
src0.GetIndices().CopyTo(editor.
Indices
);
701
src0.GetIndices().CopyTo(editor.
Indices
);
764
src0.GetIndices().CopyTo(editor.
Indices
);
830
src0.GetIndices().CopyTo(editor.
Indices
);
899
src0.GetIndices().CopyTo(editor.
Indices
);
GcnTransform.cs (1)
503
src.GetIndices().CopyTo(editor.
Indices
);
MissingValueDroppingTransformer.cs (1)
349
editor.
Indices
[iDst] = srcIndices[i] - offset;
MissingValueIndicatorTransform.cs (6)
282
editor.
Indices
[0] = 1;
287
editor.
Indices
[0] = 0;
315
editor.
Indices
[iivDst] = 2 * ivSrc + 1;
320
editor.
Indices
[iivDst] = 2 * ivSrc;
343
editor.
Indices
[iivDst] = 2 * iv + 1;
348
editor.
Indices
[iivDst] = 2 * iv;
MissingValueIndicatorTransformer.cs (2)
369
indices.CopyTo(editor.
Indices
);
397
editor.
Indices
[iiDst++] = i;
MissingValueReplacing.cs (4)
759
dstEditor.
Indices
[iivDst++] = iv;
765
dstEditor.
Indices
[iivDst++] = iv;
833
dstEditor.
Indices
[iivDst++] = iv;
839
dstEditor.
Indices
[iivDst++] = iv;
MutualInformationFeatureSelection.cs (1)
903
input.GetIndices().CopyTo(editor.
Indices
);
Text\LdaTransform.cs (2)
537
Contracts.Assert(i == 0 || editor.
Indices
[i - 1] < index);
538
editor.
Indices
[i] = index;